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

Add 'provider' parameter to configuration #595

Open
bschwert opened this issue Dec 17, 2024 · 5 comments
Open

Add 'provider' parameter to configuration #595

bschwert opened this issue Dec 17, 2024 · 5 comments

Comments

@bschwert
Copy link

In Java > 9 the provider for PKCS11 signing needs to be added to the keytool-call to resolve the jarsigner.provider.class:
-addprovider SunPKCS11

I suggest to add this to the configuration.

@netomi
Copy link
Contributor

netomi commented Dec 17, 2024

@bschwert
Copy link
Author

Does this maybe related to https://stackoverflow.com/questions/47412758/sunpkcs11-provider-not-found-with-keytool ?

The error message is the same, but I'm signing on a Mac and do not have any backslashes in the path. The proposed '-addprovider SunPKCS11' works in my case.

@netomi
Copy link
Contributor

netomi commented Dec 17, 2024

does your %JAVA_HOME%/conf/security/java.security file contain a line like that:

security.provider.12=SunPKCS11

@netomi
Copy link
Contributor

netomi commented Dec 17, 2024

also could you test if adding this setting to this parameter would also work:

jarsigner.javaargs=-addprovider SunPKCS11

@bschwert
Copy link
Author

jarsigner.javaargs=-addprovider SunPKCS11

is not sufficient and leads to Unrecognized option: -addprovider error.

The java.security contains security.provider.13=SunPKCS11.

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