Add a passphrase to the pkcs12.
This commit is contained in:
parent
9c497992c3
commit
ad8eae987b
|
|
@ -25,6 +25,7 @@
|
||||||
certificate_path: "{{ mkcert_cert_dest_path }}"
|
certificate_path: "{{ mkcert_cert_dest_path }}"
|
||||||
privatekey_path: "{{ mkcert_key_dest_path }}"
|
privatekey_path: "{{ mkcert_key_dest_path }}"
|
||||||
other_certificates: '{{ java_trusted_certificates_list }}'
|
other_certificates: '{{ java_trusted_certificates_list }}'
|
||||||
|
passphrase: "{{ java_keystore_pwd }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
@ -33,9 +34,12 @@
|
||||||
- name: Import the CA certificate
|
- name: Import the CA certificate
|
||||||
community.general.java_cert:
|
community.general.java_cert:
|
||||||
pkcs12_path: "{{ pki_dir }}/keys/{{ ansible_fqdn }}.pkcs12"
|
pkcs12_path: "{{ pki_dir }}/keys/{{ ansible_fqdn }}.pkcs12"
|
||||||
|
pkcs12_alias: "{{ java_keystore_cert_alias }}"
|
||||||
|
pkcs12_password: "{{ java_keystore_pwd }}"
|
||||||
cert_alias: "{{ java_keystore_cert_alias }}"
|
cert_alias: "{{ java_keystore_cert_alias }}"
|
||||||
keystore_path: "{{ java_keystore_file }}"
|
keystore_path: "{{ java_keystore_file }}"
|
||||||
keystore_pass: "{{ java_keystore_pwd }}"
|
keystore_pass: "{{ java_keystore_pwd }}"
|
||||||
|
keystore_type: JKS
|
||||||
keystore_create: true
|
keystore_create: true
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
@ -50,10 +54,11 @@
|
||||||
action: export
|
action: export
|
||||||
friendly_name: "{{ java_keystore_cert_alias }}"
|
friendly_name: "{{ java_keystore_cert_alias }}"
|
||||||
path: "{{ letsencrypt_acme_sh_certificates_install_path }}/{{ letsencrypt_acme_sh_certificates_install_dir }}.pkcs12"
|
path: "{{ letsencrypt_acme_sh_certificates_install_path }}/{{ letsencrypt_acme_sh_certificates_install_dir }}.pkcs12"
|
||||||
certificate_path: "{{ letsencrypt_acme_sh_certificates_install_path }}/cert"
|
|
||||||
privatekey_path: "{{ letsencrypt_acme_sh_certificates_install_path }}/privkey"
|
privatekey_path: "{{ letsencrypt_acme_sh_certificates_install_path }}/privkey"
|
||||||
other_certificates:
|
other_certificates:
|
||||||
- '{{ letsencrypt_acme_sh_certificates_install_path }}/fullchain'
|
- '{{ letsencrypt_acme_sh_certificates_install_path }}/fullchain'
|
||||||
|
other_certificates_parse_all: true
|
||||||
|
passphrase: "{{ java_keystore_pwd }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
@ -63,7 +68,10 @@
|
||||||
community.general.java_cert:
|
community.general.java_cert:
|
||||||
pkcs12_path: "{{ letsencrypt_acme_sh_certificates_install_path }}/{{ letsencrypt_acme_sh_certificates_install_dir }}.pkcs12"
|
pkcs12_path: "{{ letsencrypt_acme_sh_certificates_install_path }}/{{ letsencrypt_acme_sh_certificates_install_dir }}.pkcs12"
|
||||||
cert_alias: "{{ java_keystore_cert_alias }}"
|
cert_alias: "{{ java_keystore_cert_alias }}"
|
||||||
|
pkcs12_alias: "{{ java_keystore_cert_alias }}"
|
||||||
|
pkcs12_password: "{{ java_keystore_pwd }}"
|
||||||
keystore_path: "{{ java_keystore_file }}"
|
keystore_path: "{{ java_keystore_file }}"
|
||||||
keystore_pass: "{{ java_keystore_pwd }}"
|
keystore_pass: "{{ java_keystore_pwd }}"
|
||||||
|
keystore_type: JKS
|
||||||
keystore_create: true
|
keystore_create: true
|
||||||
state: present
|
state: present
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue