-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential TLS config issue for API access with Deno. #251
Comments
Indeed, my hosting provider apparently doesn't have updated cipher suites. I'll explore a bit more. On Mar 10, 2023, at 3:26 AM, Anton ***@***.***> wrote:
This would be a travellermap.com hosting issue rather than a problem with the code, so apologies if this is the wrong place.
I'm learning Typescript and trying it out against the travellermap API using Deno (similar to nodejs), and the combination of those two as server and client don't like each other. I don't have any problems connecting with browsers, curl or Python libs, and likewise Deno seems to connect to all the other sites I try it against.
As far as I can tell, it looks like a TLS config mismatch. Here is a relevant chunk of Deno debug log when trying the web Fetch API:
DEBUG RS - deno::proc_state:458 - Prepared module load.
DEBUG RS - deno_runtime::permissions:55 -
|
This is due to the reliance on IIS 8. IIS is going to go away eventually, so porting to a modern architecture needs a priority boost. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be a travellermap.com hosting issue rather than a problem with the code, so apologies if this is the wrong place.
I'm learning Typescript and trying it out against the travellermap API using Deno (similar to nodejs), and the combination of those two as server and client don't like each other. I don't have any problems connecting with browsers, curl or Python libs, and likewise Deno seems to connect to all the other sites I try it against.
As far as I can tell, it looks like a TLS config mismatch. Here is a relevant chunk of Deno debug log when trying the web Fetch API:
I don't know for sure but suspect that the Rust TLS lib rustls (used by Deno and others) is very strict with its ciphers, while your hosting provider only providing weaker ones means that a TLS handshake can't be negotiated between the two.
For reference theses are the rustls cipher suites for TLS 1.2 and 1.3: https://docs.rs/rustls/latest/rustls/cipher_suite/index.html
And with no overlaps, travellermap.com hosting supports these TLS 1.2 ciphers (from https://dev.ssllabs.com/ssltest/analyze.html?d=travellermap.com):
SSL Labs reckons those are all weak ciphers, so I suspect the very strict rustls deliberately doesn't support them.
Not a critical issue - I can use other libs. Although something to raise with your hosting provider perhaps - they might be missing out on serving connections from other strict clients.
The text was updated successfully, but these errors were encountered: