ripple / rippled-historical-database

SQL database as a canonical source of historical data
99 stars 68 forks source link

Could not create SSL/TLS secure channel #156

Closed software-programmer closed 6 years ago

software-programmer commented 6 years ago

I've been attempting to query account payments using the REST API at https://data,ripple.com, but using native HttpWebRequest in .Net causes an exception with the message "Could not create SSL/TLS secure channel".

I do not have this issue on https://api.altnet.rippletest.net:5990

Any pointers would be appreciated

shekenahglory commented 6 years ago

you've got a comma in the URL posted here...could that be the issue?

software-programmer commented 6 years ago

I've managed to work through the issue.

The server is TLS1.2 and I believe .Net 4.5 defaults to Ssl 3.0 | Tls 1.0 | Tls 1.1

Using this code I can override the default ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

.Net 4.6 defaults to Tls 1.0 | Tls 1.1 | Tls 1.2 I believe