Hi, every one.

I have one question.

I have a characters stream like this:

-----BEGIN X509
CERTIFICATE-----MIIBgjCCASwCAQQwDQYJKoZIhvcNAQEEBQAwODELMAkGA1UEBh MCQVUxDDAKBgNVBAgTA1FMRDEbMBkGA1UEAxMSU1NMZWF5L3Jz YSB0ZXN0IENBMB4XDTk1MTAwOTIzMzIwNVoXDTk4MDcwNTIzMz IwNVowYDELMAkGA1UEBhMCQVUxDDAKBgNVBAgTA1FMRDEZMBcG A1UEChMQTWluY29tIFB0eS4gTHRkLjELMAkGA1UECxMCQ1MxGz AZBgNVBAMTElNTTGVheSBkZW1vIHNlcnZlcjBcMA0GCSqGSIb3 DQEBAQUAA0sAMEgCQQC3LCXcScWua0PFLkHBLm2VejqpA1F4RQ 8q0VjRiPafjx/Z/aWH3ipdMVvuJGa/wFXb/nDFLDlfWp+oCPwhBtVPAgMBAAEwDQYJKoZIhvcNAQEEBQADQQA rNFsihWIjBzb0DCsU0BvL2bvSwJrPEqFlkDq3F4M6EGutL9axE cANWgbbEdAvNJD1dmEmoWny27PnIMs6ZOZB-----END
X509 CERTIFICATE-----

this is just bytes stream based on based64 code.
I want to convert this to PEM format

Please tell me function in openSSL.

Thank you..........