-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Milestone
Description
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:
$ ./jsign.sh --keystore /home/vadim/etoken.cfg --alias "X.509 Certificate for PIV Authentication" --storetype YUBIKEY --storepass $PASS --tsaurl http://ts.ssl.com --tsmode RFC3161 nxproxy.exe
Adding Authenticode signature to nxproxy.exe
jsign: Couldn't sign nxproxy.exe
net.jsign.bouncycastle.cms.CMSException: can't create content verifier: exception on setup: java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl
at net.jsign.bouncycastle.cms.SignerInformation.doVerify(Unknown Source)
at net.jsign.bouncycastle.cms.SignerInformation.verify(Unknown Source)
at net.jsign.AuthenticodeSigner.createSignedData(AuthenticodeSigner.java:376)
at net.jsign.AuthenticodeSigner.sign(AuthenticodeSigner.java:342)
at net.jsign.SignerHelper.sign(SignerHelper.java:506)
at net.jsign.JsignCLI.execute(JsignCLI.java:116)
at net.jsign.JsignCLI.main(JsignCLI.java:40)
Caused by: net.jsign.bouncycastle.operator.OperatorCreationException: exception on setup: java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl
at net.jsign.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder.createSignature(Unknown Source)
at net.jsign.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder.access$300(Unknown Source)
at net.jsign.bouncycastle.operator.jcajce.JcaContentVerifierProviderBuilder$2.get(Unknown Source)
at net.jsign.bouncycastle.cms.SignerInformationVerifier.getContentVerifier(Unknown Source)
... 7 more
Caused by: java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl
at java.base/java.security.Signature$Delegate.chooseProvider(Signature.java:1303)
at java.base/java.security.Signature$Delegate.engineInitVerify(Signature.java:1349)
at java.base/java.security.Signature.initVerify(Signature.java:506)
... 11 more
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
Strangerxxx and devsibwarra
Metadata
Metadata
Assignees
Labels
No labels