I'll be looking into this problem. At first glance at the code I noticed
a comment which says "this code still has some problems reading PKCS12
file generated with Communicator". Is your PFX file one of these? There
some comments in the pk12 code that mention problems with old
implementations. If your PFX file was generated more recently do you
know how it was generated?
Bill Price wrote:
I am getting an error trying to read a p12 file using JSS and examining its
components. I am getting the error:
java.security.InvalidAlgorithmParameterException: RC2/CBC/NoPadding cannot
use a null parameter
I am essentially using the code from the main program at:
http://lxr.mozilla.org/security/source/security/jss/org/mozilla/jss/pkcs12/PFX.java
The error is occuring at line 377 where the program attempts to get/decrypt
the 2nd of 2 SafeContents. This SafeContents is encrypted with the
pbeWithSHAAnd40BitRC2-CBC.
The p12 file seems to work okay when used for client authentication with
Java Native SSL.
The problem seems to occur with both JSS34 and JSS4.
Has anyone else seen this or have any suggestions? Thanks.
Bill Price
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto