[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] Problem with PEM files

    Hi all.

    I'm trying to generate certs in PEM format, using PemOutputStream,
but SSLeay don't recognises files created with this IAIK class. I attach
a code digest and the corresponding error shown by SSLeay.


X509Certificate user = new X509Certificate();
user.writeTo(new PemOutputStream(new
FileOutputStream("cert.pem","-----BEGIN CERTIFICATE -----", "-----END

x509 -inform pem -in cert13.pem -text

unable to load certificate
14302:error:0D06B08D:asn1 encoding routines:ASN1_get_object:too
14302:error:0D09F065:asn1 encoding routines:D2I_X509:bad get
object:x_x509.c:114:address=135109336 offset=-1208854424
14302:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1

Certificates that are generated in DER format work properly, but PEM
don't. Any idea??

    Thanks in advance.
scar Cnovas Reverte
Personal de Investigacin
Universidad de Murcia - Espaa (Spain)
Tlf: +34 968364644    Fax: +34 968364151

XXrya{0&n
I@R	&