title: How to read server certificate in DER format using openssl API?
body: <p>I want to read a server certificate in DER format and store it in our DB, I found a api to print certificate using X509 structure, but i don't see any API to get it as string. can anyone please point out the API or any example to read certificate?</p>