Skip to content

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

eddyhub
Copy link

@eddyhub eddyhub commented Feb 18, 2018

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.

acme.sh Outdated
@@ -5746,6 +5748,10 @@ _process() {
_password="$2"
shift
;;
--name)
Copy link
Member

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"
Copy link
Member

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
Copy link
Member

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 ?

Copy link
Author

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.

@eddyhub
Copy link
Author

eddyhub commented Apr 2, 2018

Just seeing that this pull request is still open. Will the changes not be merged? Did I forget something? Is something unclear?

@eddyhub
Copy link
Author

eddyhub commented Apr 7, 2018

@Neilpang: Is there any way I can help you to get these changes merged?

@Neilpang Neilpang deleted the branch acmesh-official:dev January 19, 2022 12:56
@Neilpang Neilpang closed this Jan 19, 2022
@Neilpang Neilpang reopened this Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants