I am working on a HTTPS client and I managed to establish a secure connection and get the X509 certificate using: X509 *cert = SSL_get_certificate(ssl); (ssl is SSL*).
How do I save the certificate to a file?
Also, I need to get “Subject DN” and “Issuer DN” fields from the certificate.
— How do I save the certificate to a file?
— Also, I need to get “Subject DN” and “Issuer DN” fields from the certificate.