Skip to content

Commit 188aa51

Browse files
authored
Merge pull request #6724 from h-haaks/base64-encode-pfx-password
Base64 encode pfx password
2 parents 6a9776b + 21d52b5 commit 188aa51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

acme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ _toPkcs() {
14661466
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca"
14671467
fi
14681468
if [ "$?" = "0" ]; then
1469-
_savedomainconf "Le_PFXPassword" "$pfxPassword"
1469+
_savedomainconf "Le_PFXPassword" "$pfxPassword" "base64"
14701470
fi
14711471

14721472
}
@@ -5455,10 +5455,10 @@ $_authorizations_map"
54555455
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
54565456

54575457
#convert to pkcs12
5458+
Le_PFXPassword="$(_readdomainconf Le_PFXPassword)"
54585459
if [ "$Le_PFXPassword" ]; then
54595460
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$Le_PFXPassword"
54605461
fi
5461-
export CERT_PFX_PATH
54625462

54635463
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
54645464
_savedomainconf "Le_RealCertPath" "$_real_cert"

0 commit comments

Comments
 (0)