posted 17 years ago
I am using below lines of code to convert a .cer file to its encoded format (not base64 encoded) :
However when I try the reverse process of converting back to .cer file using below code:
then I am getting error like
java.security.cert.CertificateException: java.lang.IllegalArgumentException: sequence wrong size for a certificate
I tried with Sun's default JCE Provider but not avail. Any thoughts?
Thanks.