https - Machine cannot connect to SSL website -
i have 2 machines use submit data secure https website using c# program. 1 of them has no trouble, other 1 fails handshake. i've noticed working machine sends client hello 20 cipher suites, while 1 doesn't work sends 4. using iiscrypto, i've been able ensure both machines have same ciphers enabled.
does have recommendations of how troubleshoot issue?
code used connect:
try { var myrequest = (httpwebrequest)webrequest.create(url); var response = (httpwebresponse)myrequest.getresponse(); if (response.statuscode == httpstatuscode.ok) { console.write(string.format("{0} available", url)); } else { console.write(string.format("{0} returned, status: {1}", url, response.statusdescription)); } } catch (exception ex) { console.write(string.format("{0} unavailable: {1}", url, ex.message)); }
to troubleshot ssl problems using network sniffer wireshark , ssl alert messages. message tell why remote endpoint closed connection.
see: ssl alert protocol on wikipedia page.
Comments
Post a Comment