-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
added option to set alias for PKCS12 #1289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
acme.sh
Outdated
@@ -5746,6 +5748,10 @@ _process() { | |||
_password="$2" | |||
shift | |||
;; | |||
--name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use --name
.
use something like: --pfx-alias
instead.
acme.sh
Outdated
@@ -6016,7 +6022,7 @@ _process() { | |||
uninstallcronjob) uninstallcronjob ;; | |||
cron) cron ;; | |||
toPkcs) | |||
toPkcs "$_domain" "$_password" "$_ecc" | |||
toPkcs "$_domain" "$_password" "$_name" "$_ecc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
place the new parameter at the last position.
acme.sh
Outdated
elif [ "$pfxName" ]; then | ||
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca" -password "pass:$pfxPassword" -name "$pfxName" | ||
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -inkey "$_ckey" -in "$_ccert" -certfile "$_cca" -password "pass:$pfxPassword" -name "$pfxAlias" -caname "$pfxCaname" | ||
elif [ "$pfxAlias" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this change.
Is the pfxName
same as pfxAlias
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as i know the alias field is a unique string to identify the key entry. I am used to oracles keystore tool and oracle named this field alias. I reverted the change.
Just seeing that this pull request is still open. Will the changes not be merged? Did I forget something? Is something unclear? |
@Neilpang: Is there any way I can help you to get these changes merged? |
I need to set the alias, so I added this option. Before this the alias was 1 and is still the default with --name parameter.