If you take a look at the source code for
org.mozilla.jss.provider.java.security.JSSSignatureSpi
you can see how does JSS use private key for signing, basically:
CryptoToken owningToken = privKeyByCert.getOwningToken();
Signature signatureContext =
owningToken.getSignatureCon
Hi Jean-Marc,
That line is commented because previously I handle the privatekey
with findPrivKeyByCert, so that is only for information purpose and
the privatekey exists.
That code works with a privatekey stored in pkcs12 file, so i think
that the problem is with JSS and its philosophy o
Felix Alejandro Prieto Carratala wrote:
I also try this:
[...]
//pk is a org.mozilla.jss.crypto.PrivateKey that i get with
//CryptoManager.findPrivKeyByCert(cryptoManager.findCertByNickname(nickName));
Why is that line commented out ? Do you test you get a valid pk handle
out of findPrivKey
3 matches
Mail list logo