Skip to content

Commit 4cb2b55

Browse files
committed
Update PKCS12 keystore settings
See gh-719
1 parent 9eaaf1c commit 4cb2b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/bash/create_certificates.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ echo "[INFO] Creating PKCS12 file with client certificate"
126126
openssl pkcs12 -export -clcerts \
127127
-in ${CA_DIR}/certs/client.cert.pem \
128128
-inkey ${CA_DIR}/private/client.decrypted.key.pem \
129-
-passout pass:changeit \
129+
-passout pass:changeit -certpbe pbeWithSHA1And3-KeyTripleDES-CBC -keypbe pbeWithSHA1And3-KeyTripleDES-CBC -macalg sha1 \
130130
-out ${CA_DIR}/client.p12
131131

132132
"${KEYTOOL}" -importcert -keystore ${KEYSTORE_FILE} -file ${CA_DIR}/certs/ca.cert.pem -noprompt -storepass changeit
133133
"${KEYTOOL}" -importkeystore \
134-
-srckeystore ${CA_DIR}/client.p12 -srcstoretype PKCS12 -srcstorepass changeit\
135-
-destkeystore ${CLIENT_CERT_KEYSTORE} -deststoretype JKS \
134+
-srckeystore ${CA_DIR}/client.p12 -srcstoretype PKCS12 -srcstorepass changeit \
135+
-destkeystore ${CLIENT_CERT_KEYSTORE} -deststoretype PKCS12 \
136136
-noprompt -storepass changeit
137137

138138
echo "[INFO] Generating intermediate CA private key"

0 commit comments

Comments
 (0)