Initial commit

This commit is contained in:
Pin
2022-04-20 22:57:21 -04:00
commit c80371138a
13 changed files with 279 additions and 0 deletions

30
tasks/Setup-Certs.yml Normal file
View File

@@ -0,0 +1,30 @@
---
- name: Create DVWA Certs Directory
file:
path: /opt/dvwa-docker/certs
state: directory
owner: root
group: root
mode: "0700"
- name: Generate OpenSSL Priv Key
openssl_privatekey:
path: /opt/dvwa-docker/certs/key.priv
size: 4096
type: RSA
- name: Generate OpenSSL CSR
openssl_csr:
path: /opt/dvwa-docker/certs/cert.csr
privatekey_path: /opt/dvwa-docker/certs/key.priv
country_name: US
organization_name: ACME
common_name: localhost
- name: Generate Self Signed Cert
openssl_certificate:
path: /opt/dvwa-docker/certs/cert.crt
privatekey_path: /opt/dvwa-docker/certs/key.priv
csr_path: /opt/dvwa-docker/certs/cert.csr
provider: selfsigned
...