-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl #106
Comments
Are you sure the code signing certificate is in the "X.509 Certificate for PIV Authentication" slot ? Usually it's in the "X.509 Certificate for Digital Signature" slot. You can try this instead:
|
Hello! |
@ebourg yes, I definitely sure that my certificate in the "X.509 Certificate for PIV Authentication" slot |
Even an upgrade to bouncycastle v1.70 did not helped |
Getting the same error with Google Cloud and SSL.com EV cert. My command is
Versions
Really appreciate the work on jsign and any suggestions you might have! |
Following #93 (comment) from another jsign issue, I was able to successfully sign the file with CodeSignTool, but do see the same problem reported in that issue ("No signature was present in the subject"). Happy to help test any jsign changes as the cross-platform multi-service support would be ideal |
@devsibwarra What's the order of the certificates in cert-bundle.pem? |
The bundle order is
|
finally fixed by resetting yubikey and reimporting certificates from scratch |
@ebourg Turns out I was using the wrong certificate bundle for Google Cloud HSM. If it helps add error handling, when I was trying to use the bad cert with osslsigncode, I was getting
Using the correct cert bundle with jsign + google cloud hsm gives me a valid signed file 🥂 |
Good to hear it works. I'll try to add more checks. |
Hi, |
I've checked the behavior of Jsign when the private key and the public key don't match:
There are two issues here:
|
Jsign now displays an explicit error message when the private key and the certificate don't match |
Hello!
I'm using an EV certificate from SSL.com. The latest code after the fix for #105 made some progress, but still goes wrong somewhere. The Yubikey blinks briefly, but then jsign fails with this:
Some research suggests one of these might be related:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4953555
https://stackoverflow.com/questions/41534827/java-signature-object-no-installed-provider-supports-this-key-sun-security-rs
The text was updated successfully, but these errors were encountered: