Topic: Problem with wolfSSL - CA parse failed
Hello All:
I have wolfSSL working fine with the Atmel Zero touch AWS kit (http://www.atmel.com/applications/iot/a … b=overview). It has WINC1500 WiFi and CryptoAuthentication chip ATECC508.
Now, I'm trying to port it to my hardware with different network (ethernet) and I'm getting following error which I'm not sure if it's related to a network problem or something else.... I'm using the same Crypto chip that was provisioned in the other hardware so that should be Ok. But is seems it' has problem adding the CA certificate... I see the log shows a connection problem but I think it's part of the previous error, as I can see the connection with the host happens, although there is no Client HELLO message after that.
Here is the log I have;
wolfSSL Entering WOLFSSL_CTX_new
wolfSSL Entering wolfSSL_CertManagerNew
wolfSSL Leaving WOLFSSL_CTX_new, return 0
wolfSSL Entering wolfSSL_CTX_set_cipher_list
wolfSSL Entering wolfSSL_CTX_load_verify_buffer
Processing CA PEM file
wolfSSL Entering PemToDer
Adding a CA
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetMyVersion
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Key
Parsed Past Key
wolfSSL Entering DecodeCertExtensions
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeBasicCaConstraint
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeSubjKeyId
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Parsed new CA
Freeing Parsed CA
Freeing der CA
OK Freeing der CA
wolfSSL Leaving AddCA, return -150
wolfSSL error occurred, error = -150
CA Parse failed, with progress in file.
Search for other certs in file
ERROR: aws_client_net_tls_cb L#355 Failed to set root cert!
wolfSSL Entering SSL_CTX_free
CTX ref count down to 0, doing full free
wolfSSL Entering wolfSSL_CertManagerFree
wolfSSL Leaving SSL_CTX_free, return 0
wolfSSL Entering wolfSSL_Cleanup
ERROR: aws_client_init_mqtt_client L#122 Error(7) : Failed to connect to Host!
What is this error exactly? Is this related with CA certificate? I would appreciate any help.
Thanks
Gus