Debugging SSL connection problems?
Posted: Mon Jun 10, 2013 12:04 am
I'm having a problem where a call to SSL_connect() fails to establish a connection to some servers with the error: SSL_ERROR_FAILED_NEGOTIATION
So for example, this will fail when I run it on my PK70:
However, if I change the server to something like www.google.com it works fine. So my question is: how would I go about tracking down this error? There doesn't seem to be any detailed debugging information available from the SSL library -?
Note: I have certificate checking disabled (ie: NB_SSL_CLIENT_CERTIFICATE_CHECKING_ENABLED is undefined).
It also works fine from my PC (ie: curl -k -v https://www.netburner.com)
Any suggestions would be much appreciated!
So for example, this will fail when I run it on my PK70:
Code: Select all
IPADDR serverIP;
int resp = GetHostByName( "www.netburner.com", &serverIP, 0, TICKS_PER_SECOND*2 );
if (resp==DNS_OK)
{
int fds = SSL_connect( serverIP, 0, 443, TICKS_PER_SECOND*4, 0 );
iprintf( "Response = %d", fds );
}
Note: I have certificate checking disabled (ie: NB_SSL_CLIENT_CERTIFICATE_CHECKING_ENABLED is undefined).
It also works fine from my PC (ie: curl -k -v https://www.netburner.com)
Any suggestions would be much appreciated!