eturnal icon indicating copy to clipboard operation
eturnal copied to clipboard

Unable to use TURNS

Open 0-wHiTeHand-0 opened this issue 1 year ago • 0 comments

Hi,

I have been using the TCP TURN server for a while, and it works pretty well. However, today I was trying to enable TURNS with my Lets Encrypt certificate, and I always get the following error when connecting to the TURNS server from a TURNS client:

[info] Connection failure: SSL_do_handshake failed: error:0A000412:SSL routines::sslv3 alert bad certificate [TLS, session 0nli2su5mttw, anonymous, client <MYIP>:<MYPORT>]

I've been looking around, and couldn't find anything about this error in eturnal or coturn; can someone throw some light into this? I use the certificate for my nginx too, and it works good. Also, if I connect to the TURNS server using openssl s_client, the connection is successfully established. Weird.

Thanks!

Eturnal config:

eturnal:
secret: <secret>

listen:
-
    ip: "0.0.0.0"
    port: 45139
     transport: tcp
 -
      ip: "0.0.0.0"
      port: 45140
      transport: tls

  tls_crt_file: /etc/eturnal/certs/cert.cert
  tls_key_file: /etc/eturnal/certs/key.key

  relay_min_port: 60455
  relay_max_port: 60555

  strict_expiry: false

  log_level: info
  log_rotate_size: 10485760
  log_rotate_count: 10

  modules:
    mod_log_stun: {} 

0-wHiTeHand-0 avatar Apr 01 '24 13:04 0-wHiTeHand-0