File tree Expand file tree Collapse file tree 2 files changed +302
-137
lines changed Expand file tree Collapse file tree 2 files changed +302
-137
lines changed Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments