I am new to OpenSSL, so forgive me if I ask anything stupid.
I need to convert an existing server project which uses axTLS to OpenSSL. As the server requires client authentication, I need to load the server cert file, private key file and the CA cert file. All 3 files are in DER format.
For server cert file and private key file, I can use SSL_CTX_use_certificate_file()
and SSL_CTX_use_PrivateKey_file()
to load a DER format file (ASN1 format). However, I couldn't find any API that loads the CA cert in DER format. SSL_CTX_load_verify_locations()
and SSL_load_client_CA_file()
seem only work for PEM format.
Any other API/method I can use to work around this issue?
Thank you.