Re: how do make importCertToPerm

2006-08-24 Thread Arshad Noor
You can cast a java.security.cert.Certificate to java.security.cert.X509Certificate and it will work. Another way of solving this problem, and which may be a little simpler IMHO, is to use the KeyStore class from the standard JDK, and combine it with the SunPKCS11 Bridge to gain access to the NSS

Re: how do make importCertToPerm

2006-08-24 Thread Primo It
It doesn't work. I can`t pass a Certificate to importCertToPerm that receives X509Certificate "Glen Beasley" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Primo It wrote: >> Hi, >> >> I`m trying to do it too. >> >> I want to insert a certificate (a file *.cer selected in the

Re: how do make importCertToPerm

2006-08-24 Thread shinigami
Well well! It´s work, but not erase my problems. I receive a "java.security.cert.X509Certificate", not a "org.mozilla.jss.crypto.X509Certificate" neither a "org.mozilla.jss.pkix.cert." In this case i receiva a Sun Certificate from other module of my software. exactly not having decided my probl

Re: how do make importCertToPerm

2006-08-24 Thread Glen Beasley
Primo It wrote: Hi, I`m trying to do it too. I want to insert a certificate (a file *.cer selected in the machine) into the Permanent Certificates DB by the CryptoManager.importCertToPerm(...), but for it, i need to create an instance of org.mozilla.jss.crypto.X509Certificate from this selec

Re: how do make importCertToPerm

2006-08-24 Thread Primo It
Hi, I`m trying to do it too. I want to insert a certificate (a file *.cer selected in the machine) into the Permanent Certificates DB by the CryptoManager.importCertToPerm(...), but for it, i need to create an instance of org.mozilla.jss.crypto.X509Certificate from this selected file. is ther

Re: add new token device

2006-08-24 Thread Primo It
Is there a way to do it by JSS? "David Stutzman" escreveu na mensagem news:[EMAIL PROTECTED] > Primo It wrote: >> How can i set a new token device programacticali >> >> Thanks, >> Primo It > > Look at the source for modutil. I have found over the past few months > that a lot of what you may at

Re: Encryption/Decryption with client-certificates

2006-08-24 Thread Anders Rundgren
Nelson Bolyard wrote: >Erik >Let me try asking my question another way. >You're trying to solve some problem with encryption. >Can it be solved through the use of SSL (through https) ? >Alternatively, Can it be solved through the use of something like S/MIME ? Indeed very valid questions. Let m