Hi,

I'm trying to insert a public key (usercert.pem) in PEM format to a db using
Java.  I believe a PEM file is ascii format, thus
it takes in a byte [ ]?

What do you think is the best method to read an X509 credential in
.PEM format, and store it in a database?  After
encountering problems with treating the credentail as a String, am now
passing it in {and reading it out} as a byte array.  The resulting
credential appears to be truncated at the first line when I read it
back:

Cert is: [EMAIL PROTECTED]

I am storing the data in a MySQL varchar field of 2055 characters.

Do I have to Base64 encode and decode the Cert?

Reply via email to