Websockify error: sslv3 alert certificate unknown

Viewed 10

I'm currently using websockify 0.9.0

The command line to start is:

websockify 0.0.0.0:3306 0.0.0.0:3389 --cert=./bundle.crt --key=./private_key.key --ssl-target --ssl-version=tlsv1_2 --ssl-ciphers='HIGH:!aNULL' --ssl-only --verbose

I got the following error:

ip: new handler Process
handler exception: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1131)
exception
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 691, in top_new_client
    client = self.do_handshake(startsock, address)
  File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 585, in do_handshake
    retsock = context.wrap_socket(
  File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1131)

I'm sure the certificate is good because i use it for https requests, also i tried to use a self signed certificate and the error is the same. The connection client-side happens with

wss://ip:port

what should i do?

0 Answers
Related