TLS handshake error using mbedTLS

I'm implementing an OAUTH procedure on my device.  I'm able to access login.microsoftonline.com and get user and device codes, then after authorizing, I can access the token endpoint and get an access token.  I'm using the root ca DigiCert Global Root CA.

But then when I got to the customer's server (which is an azure instance) I try to connect and I get a TLS handshake error;

TLS handshake error: -2700

I have no idea of what that error is or how to go about debugging is.  I'm using the same root ca as I use for login.microsoftonline.com and since it's azure, I'm assuming that is OK.

Any thoughts, or cipher suites I should try to enable.  Anything that I can try since I'm kind of stuck right now.

Thanks

Related