Is there any chance I can use TLS when connecting ...
# help
b
Is there any chance I can use TLS when connecting from Deno? Below warning indicates something incompatible:
Copy code
TLS connection failed with message: invalid peer certificate contents: invalid peer certificate: UnsupportedCertVersion
Defaulting to non-encrypted connection
Sending fatal alert BadCertificate
n
Hello @Baoshan! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
Supabase already uses TLS (versions 1.0, 1.1, 1.2 and 1.3 are all supported - SSLv2 and SSLv3 are not). For TLS 1.3, the server supports TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384 and TLS_CHACHA20_POLY1305_SHA256. For TLS 1.2, it supports around 20 different cipher suites, so it should cover most use cases.
n
Baoshan (2022-05-10)
b
Thanks for the information. This issue believes it is not Deno’s fault. Do you think we should submit an issue to
denoland/deno
? https://github.com/denodrivers/postgres/issues/376
s
Ah, sorry, I thought you meant you were connecting via the
project-id.supabase.co
REST endpoint using a supabase library (rather than directly to the DB)
b
Sorry for not clarifying my situation. Is there any issue I can currently track? Oh, maybe this one: https://github.com/denoland/deno/issues/13350
n
Hello - were you able to find a solution for the issue? I'm connecting from Deno to Supabase but keep getting bad certificate error. (I import certificate from the cert download box on supabase settings)