Re: how do make importCertToPerm

2006-08-23 Thread glen beasley
David Stutzman wrote: shinigami wrote: Hi, E want install a cert in a db. But my cert when i receive from outside is a java.security.cert.X509Certificate, and the method importCertToPerm can´t do it. I need to cast this cert to org.mozilla.jss.crypto.X509Certificate. Or exist other way to do

Re: FireFox CRASHED while edting trust settings at Cert Manager

2006-08-23 Thread Nelson Bolyard
Oscar So wrote: > Is there a programmatical way to import a Trusted (Root CA) cert into > FireFox cert store besides through the PKCS#11 API ? > And, is there a programmtical way to edit the trust settings of a > Trusted (Root CA) cert ? Not without user participation. If a web page could instal

Re: CMS (in)definite length encoding

2006-08-23 Thread Nelson Bolyard
Nelson Bolyard wrote: > Michiel van Meersbergen wrote: > >> Can anyone tell me if it is also possible to get a definite-length DER >> structure as output to the CMS_EncoderStart / -Update / -Finish >> functions? > > This is a good question, and requires some research. > I think no one can answer

Re: Encryption/Decryption with client-certificates

2006-08-23 Thread Nelson Bolyard
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 ? ___ dev-tech-c

FireFox CRASHED while edting trust settings at Cert Manager

2006-08-23 Thread Oscar So
Hi, Is there a programmatical way to import a Trusted (Root CA) cert into FireFox cert store besides through the PKCS#11 API ? And, is there a programmtical way to edit the trust settings of a Trusted (Root CA) cert ? If none of the above works, how can I include our Trusted (Root CA) cert into F

Re: how do make importCertToPerm

2006-08-23 Thread shinigami
Using the importCertPackage method i got this exception org.mozilla.jss.crypto.NoSuchItemOnTokenException at org.mozilla.jss.CryptoManager.importCertPackageNative(Native Method) at org.mozilla.jss.CryptoManager.importCertPackage(CryptoManager.java:962) for i accept The Builtin Object Token i ne

Re: how do make importCertToPerm

2006-08-23 Thread David Stutzman
shinigami wrote: Hi, E want install a cert in a db. But my cert when i receive from outside is a java.security.cert.X509Certificate, and the method importCertToPerm can´t do it. I need to cast this cert to org.mozilla.jss.crypto.X509Certificate. Or exist other way to do this?? Try these 2 me

how do make importCertToPerm

2006-08-23 Thread shinigami
Hi, E want install a cert in a db. But my cert when i receive from outside is a java.security.cert.X509Certificate, and the method importCertToPerm can´t do it. I need to cast this cert to org.mozilla.jss.crypto.X509Certificate. Or exist other way to do this??