From f602593f40a07b905db675605a6e8e71969c5bd1 Mon Sep 17 00:00:00 2001 From: Frderik Kriewitz Date: Thu, 7 Dec 2017 16:13:04 +0000 Subject: [PATCH] default to domain as friendlyName for --toPkcs --- acme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 98f4067a..65e93135 100755 --- a/acme.sh +++ b/acme.sh @@ -1211,6 +1211,7 @@ _toPkcs() { toPkcs() { domain="$1" pfxPassword="$2" + pfxName="$1" # use domain as frindlyName if [ -z "$domain" ]; then _usage "Usage: $PROJECT_ENTRY --toPkcs -d domain [--password pfx-password]" return 1 @@ -1220,7 +1221,7 @@ toPkcs() { _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 _info "Success, Pfx is exported to: $CERT_PFX_PATH"