mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 20:32:44 +00:00
Merge f602593f40a07b905db675605a6e8e71969c5bd1 into 3d8b682380773f01df0e5abc2ef582c30c663010
This commit is contained in:
commit
21f42008d4
3
acme.sh
3
acme.sh
@ -1455,6 +1455,7 @@ _toPkcs() {
|
|||||||
toPkcs() {
|
toPkcs() {
|
||||||
domain="$1"
|
domain="$1"
|
||||||
pfxPassword="$2"
|
pfxPassword="$2"
|
||||||
|
pfxName="$1" # use domain as frindlyName
|
||||||
if [ -z "$domain" ]; then
|
if [ -z "$domain" ]; then
|
||||||
_usage "Usage: $PROJECT_ENTRY --to-pkcs12 --domain <domain.tld> [--password <password>] [--ecc]"
|
_usage "Usage: $PROJECT_ENTRY --to-pkcs12 --domain <domain.tld> [--password <password>] [--ecc]"
|
||||||
return 1
|
return 1
|
||||||
@ -1464,7 +1465,7 @@ toPkcs() {
|
|||||||
|
|
||||||
_initpath "$domain" "$_isEcc"
|
_initpath "$domain" "$_isEcc"
|
||||||
|
|
||||||
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$pfxPassword"
|
_toPkcs "$CERT_PFX_PATH" "$CERT_KEY_PATH" "$CERT_PATH" "$CA_CERT_PATH" "$pfxPassword" "$pfxName"
|
||||||
|
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
_info "Success, PFX has been exported to: $CERT_PFX_PATH"
|
_info "Success, PFX has been exported to: $CERT_PFX_PATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user