Skip to content
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

Use a p12 file instead of installed certificates? #133

Open
iambenmitchell opened this issue Dec 15, 2021 · 2 comments
Open

Use a p12 file instead of installed certificates? #133

iambenmitchell opened this issue Dec 15, 2021 · 2 comments

Comments

@iambenmitchell
Copy link

Hello,

I currently use Zsign but I am investing in a macOS server for speed. I currently use a .p12 file with zsign, but node-applesign requires an identity to be in the keychain.

Could you add the ability to specify a path to a p12 and password flag as well?

Thanks

@trufae
Copy link
Member

trufae commented Dec 24, 2021

Despite being desirable option to not depend on apple tooling, i don't know of a way to use the security tool without the keychain. You can import this p12 in the commandline using this:

security import "ADistribution.p12" -k appledev -f pkcs12 -A -P ""

Eventually we may get rid of the security and codesign tools and make applesign work without macOS dependencies.

@iambenmitchell
Copy link
Author

I can't think of a good way of programatically selecting the certificates though? Importing the .p12 doesn't return an ID to use when signing.

Is there a way to check the name of a certificate before you import it?

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

No branches or pull requests

2 participants