cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Certificate : X509_VFY_ERROR_BASIC_CONSTRAINT

Highlighted
Newbie

Invalid Certificate : X509_VFY_ERROR_BASIC_CONSTRAINT

I'm getting an error using the SteamSensor example of the C Edge SDK on Raspberry Pi with the TW_HOST changed to me server :

twTlsClient_Connect: Error initializing TLS connection. Invalid Certificate.


When I dig down deeper, I get a Result of -11 in TW_VALIDATE_CERT (in twAxTls.h) after subtracting the SSL_X509_OFFSET which corresponds to X509_VFY_ERROR_BASIC_CONSTRAINT


Anyone have any idea what this means? I have no problem getting an SSL session using a browser or using CURL.


Thanks

Tags (2)
1 REPLY 1

Re: Invalid Certificate : X509_VFY_ERROR_BASIC_CONSTRAINT

Hello, John.

I don't find much of anything useful about X509_VFY_ERROR_BASIC_CONSTRAINT.

For the twTlsClient_Connect: Error initializing TLS connection. Invalid Certificate. the place to begin is this post is the Community:

Trust & Encryption - Hands On

I wonder if the certificate is set to be using the correct hostname for your Pi server.

-- Craig A.