Topic: Verify server Cert with CA using wolfSSL embedded ssl
Is any way to verify my own (TCP/IP server) Certificate with my CA before the handshake stars?
I am able to verify peer's (TCP/IP client) certificate during the handshake but I would like to verify my own Certificate.
I tried it using
CyaSSL_CertManagerVerifyBuffer(cm, server_cert, cert_size, SSL_FILETYPE_PEM);
In order to use that function I had to develop a new one to get "cm" in ssl.c.
CYASSL_CERT_MANAGER* CyaSSL_CTX_get_cm(CYASSL_CTX* ctx)
{
CYASSL_CERT_MANAGER* cm = NULL;
CYASSL_ENTER("CYASSL__CTX_get_cm");
cm = ctx->cm;
CYASSL_LEAVE("CYASSL__CTX_get_cm", 0);
return cm;
}
and also include in ssl.h:
CYASSL_API CYASSL_CERT_MANAGER* CyaSSL_CTX_get_cm(CYASSL_CTX*);
My new function compiles and links with no problem but I am getting and error linking CyaSSL_CertManagerVerifyBuffer.
Any suggestions?
Thanks a lot,
Belén.