mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-13 03:32:13 +08:00
Merge pull request #6724 from h-haaks/base64-encode-pfx-password
Base64 encode pfx password
This commit is contained in:
4
acme.sh
4
acme.sh
@@ -1466,7 +1466,7 @@ _toPkcs() {
|
|||||||
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca"
|
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca"
|
||||||
fi
|
fi
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
_savedomainconf "Le_PFXPassword" "$pfxPassword"
|
_savedomainconf "Le_PFXPassword" "$pfxPassword" "base64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -5455,10 +5455,10 @@ $_authorizations_map"
|
|||||||
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
|
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
|
||||||
|
|
||||||
#convert to pkcs12
|
#convert to pkcs12
|
||||||
|
Le_PFXPassword="$(_readdomainconf Le_PFXPassword)"
|
||||||
if [ "$Le_PFXPassword" ]; then
|
if [ "$Le_PFXPassword" ]; then
|
||||||
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$Le_PFXPassword"
|
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$Le_PFXPassword"
|
||||||
fi
|
fi
|
||||||
export CERT_PFX_PATH
|
|
||||||
|
|
||||||
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
|
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
|
||||||
_savedomainconf "Le_RealCertPath" "$_real_cert"
|
_savedomainconf "Le_RealCertPath" "$_real_cert"
|
||||||
|
|||||||
Reference in New Issue
Block a user