Trying wolf with curl:
curl-7.76.0
wolfssl-4.8.0
Building all with Visual Studio 2010, v100 toolset.
Using certs from:
https://curl.se/docs/caextract.html
renamed to:
cacert.pem
In the app using curl, the curl log reports:
Trying 40.112.72.205:443...
Connected to microsoft.com (40.112.72.205) port 443 (#0)
successfully set certificate verify locations:
CAfile: D:\Programming(D)\Workspaces\VS_2010 Workspaces\CurlLibTest\Curl_Local\bin\cacert.pem
CApath: none
subject alt name(s) or common name do not match "microsoft.com"
Closing connection 0
Going back to the wolfssl project to see if it works, and trying the client.exe app with:
client.exe -h google.com -p 443 -a cacert.pem
wolfSSL_connect error -188, ASN no signer error to confirm failure
wolfSSL error: wolfSSL_connect failed
Im using the default user_settings.h file from the IDE/WIN folder, and:
I do not see FIPS defined anywhere.
Current new options added:
#define OPENSSL_EXTRA
#define WOLFSSL_DES_ECB // for wolfSSL_DES_ecb_encrypt() used by curl
#define WOLFSSL_ALT_CERT_CHAINS // test fix client app connect - no fix
And have tried most all options from user_settings_all.h with no luck.
I'm assuming if I can get client.exe to work with certs, I can get curl to work.
Note calling:
client.exe -h google.com -p 443 -d
and
client.exe -h example.com -p 443 -d -g
works fine.
Also, the curl app with openssl works fine. I'm trying to get away from openssl.
Any suggestions?
Thanks,