Hi all....
I'm trying to import a .p12 file into Mozilla/Netscape Certificate
Manager...
I have try some things to know and understand JSS ( need more
explaining docs... )...

For my Job, i need to import a .p12 file into the manager. I have try
with PFX.main but i have an error :

Decoded PFX
Version: 3
AuthSafes has 2 SafeContents
AuthSafes verifies correctly.
java.security.InvalidAlgorithmParameterException: RC2/CBC/NoPadding
cannot use a null parameter
        at org.mozilla.jss.pkcs11.PK11Cipher.checkParams(PK11Cipher.java:250)
        at org.mozilla.jss.pkcs11.PK11Cipher.initDecrypt(PK11Cipher.java:136)
        at 
org.mozilla.jss.pkcs7.EncryptedContentInfo.decrypt(EncryptedContentInfo.java:290)
        at 
org.mozilla.jss.pkcs12.AuthenticatedSafes.getSafeContentsAt(AuthenticatedSafes.java:179)
        at org.mozilla.jss.pkcs12.PFX.main(PFX.java:374)



When I try to make my progs to read and import the .p12 i have this
one ( a little bit different but always probs on the Decrypt ):

Decoded PFX
Version: 3
AuthSafes has 2 SafeContents
AuthSafes verifies correctly.
org.mozilla.jss.crypto.BadPaddingException: Padding octet is less than
1
        at org.mozilla.jss.crypto.Cipher.unPad(Cipher.java:215)
        at 
org.mozilla.jss.pkcs7.EncryptedContentInfo.decrypt(EncryptedContentInfo.java:291)
        at 
org.mozilla.jss.pkcs12.AuthenticatedSafes.getSafeContentsAt(AuthenticatedSafes.java:179)
        at proto.jss.pkcs12.main(pkcs12.java:161)



I have try some other tips but i always have an error...

If someone has encounter this prob one day or if u think i have miss
something during installation or other( Bad Certificate Format for
JSS)...
All message are welcome... 
Thx u very much...
Cheers
Florian Proch
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to