Initial commit
This commit is contained in:
30
tasks/Setup-Certs.yml
Normal file
30
tasks/Setup-Certs.yml
Normal 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
|
||||
...
|
||||
Reference in New Issue
Block a user