Skip to content

Commit bc90376

Browse files
authored
Merge pull request acmesh-official#5102 from acmesh-official/dev
sync
2 parents ebaa39b + 43b5ea8 commit bc90376

File tree

2 files changed

+302
-137
lines changed

2 files changed

+302
-137
lines changed

acme.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,9 @@ _toPkcs() {
14301430
else
14311431
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca"
14321432
fi
1433+
if [ "$?" == "0" ]; then
1434+
_savedomainconf "Le_PFXPassword" "$pfxPassword"
1435+
fi
14331436

14341437
}
14351438

@@ -5338,6 +5341,12 @@ $_authorizations_map"
53385341
_savedomainconf "Le_NextRenewTimeStr" "$Le_NextRenewTimeStr"
53395342
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
53405343

5344+
#convert to pkcs12
5345+
if [ "$Le_PFXPassword" ]; then
5346+
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$Le_PFXPassword"
5347+
fi
5348+
export CERT_PFX_PATH
5349+
53415350
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
53425351
_savedomainconf "Le_RealCertPath" "$_real_cert"
53435352
_savedomainconf "Le_RealCACertPath" "$_real_ca"

0 commit comments

Comments
 (0)