Topic: Connect Error / TLS 1.2
I'm having trouble getting TLS 1.2 to connect on the wolfSSL_connect function on some sites. Sites like [digicert.com] and [godaddy.com] are fine. Sites like [rapidssl.com] and [comodo.com] typically return a last error of -313 or -308.
Has anyone seen this and have a recommendation on what to build the sdk ciphers with? I have duplicated it on many platforms but focusing on windows x64 (windows server 2016 and windows 10) for debugging purpose. I put some sample code below... Thanks.
WOLFSSL_CTX* pCTX;
WOLFSSL* pSSL;
WOLFSSL_METHOD* pMethod;
int nEC;
int nRC;
pMethod = wolfTLSv1_2_client_method();
pCTX = wolfSSL_CTX_new(pMethod);
wolfSSL_CTX_set_verify(pCTX, WOLFSSL_VERIFY_NONE, 0);
pSSL = wolfSSL_new(pCTX);
nRC = wolfSSL_set_fd(pSSL, hSocket);
nRC = wolfSSL_connect(pSSL);
nEC = wolfSSL_get_error(pSSL, nRC);
// errors typically from target of [rapidssl.com] and [rapidssl.com] are -313 and -308
// site like www.digicert.com amd [digicert.com] and [godaddy.com] work fine