Skip to content

Quote password in signing certificate import command #140

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

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jan 8, 2021

The previous unquoted password in the security import command used to import the macOS signing certificate resulted in the command failing when the password contained shell-unfriendly characters:

security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)

Example of failing import from before this change:
https://github.com/arduino/arduino-lint/runs/1660084978?check_suite_focus=true

Demonstration of successful import after this change:
https://github.com/arduino/arduino-lint/runs/1665803188?check_suite_focus=true
Downloadable here: https://downloads.arduino.cc/arduino-lint/nightly/arduino-lint_nightly-20210107_macOS_64bit.tar.gz

The previous unquoted password resulted in the command failing when the password contained shell-unfriendly characters:

security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
@per1234 per1234 requested review from silvanocerza and rsora January 8, 2021 00:14
@per1234 per1234 merged commit edb63a0 into main Jan 8, 2021
@per1234 per1234 deleted the per1234/fix-cert-import branch January 8, 2021 10:03
@per1234 per1234 added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Sep 29, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants