Hi all,

I am getting an error message
"RC2/CBC/NoPadding cannot use a null parameter"
when I run jss sample code
jss-3.4.1-src/mozilla/security/jss/samples/pkcs12.java

I have not seen this error message when using the 
earlier JSS 3.2 distribution.

What is the source of this error and how can I fix it?

Thanks for your help.

Alexei

P.S. I am enclosing the error message:

Decoded PFX
Version: 3
AuthSafes has 2 SafeContents
Enter password:
**********
Enter new password:
*******
AuthSafes verifies correctly.


SafeContents #0 has 1 bags

Bag 0 has type {1 2 840 113549 1 12 10 1 2}
Friendly Name: test
LocalKeyID:
content is EncryptedPrivateKeyInfo, algoid:{1 2 840 113549 1 12 1 3}
Enter password for Internal Key Storage Token
********
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 pkcs12.main(pkcs12.java:130)
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to