Skip to content

Commit

Permalink
Create JKS format trust store to work with the javax.net.ssl.trustSto…
Browse files Browse the repository at this point in the history
…re property
  • Loading branch information
ajkyffin committed Aug 8, 2023
1 parent 8e8c6ba commit 1be9791
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/dev_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
group: "{{ payara_user }}"
mode: 0664

# Payara 6+ creates its trust store in PKCS12 format, however the javax.net.ssl.trustStore parameter in ~/.m2/settings.xml only seems to work with JKS format
- name: "Create JKS-format trust store"
command:
cmd: keytool -importkeystore -srckeystore /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.p12 -destkeystore /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.jks -deststoretype jks
stdin: |
changeit
changeit
changeit
args:
creates: /home/{{ payara_user }}/{{ payara_directory }}/glassfish/domains/{{ payara_domain }}/config/cacerts.jks

- name: "Make test ids main folder"
file:
path: /home/{{ payara_user }}/test/data/ids/main
Expand Down

0 comments on commit 1be9791

Please sign in to comment.