Re: Signature with a privatekey doesn't works in JSS

2013-04-11 Thread Jaime Hablutzel Egoavil
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 =

Re: Signature with a privatekey doesn't works in JSS

2010-10-08 Thread Jean-Marc Desperrier
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

Re: Signature with a privatekey doesn't works in JSS

2010-10-08 Thread Felix Alejandro Prieto Carratalá
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