[OpenSIPS-Users] wss and tls

nutxase nutxase at proton.me
Thu Dec 15 16:35:14 UTC 2022


Hi All

I am trying to get tls working with my letsencrypt cert but i keep getting this error

ERROR:tls_openssl:openssl_tls_accept: SSL_ERROR_SYSCALL err=Success(0)
ERROR:tls_openssl:openssl_tls_accept: New TLS connection from xxxx:47817 failed to accept

Dec 15 16:32:54 [localhost] /usr/sbin/opensips[4373]: ERROR:proto_wss:wss_read_req: cannot fix read connection

my config is as follows
loadmodule "tls_openssl.so"

modparam("tls_mgm", "server_domain", "sip")
modparam("tls_mgm", "ca_list", "[sip]/etc/letsencrypt/fullchain.pem")
modparam("tls_mgm", "certificate", "[sip]/etc/opensips/tls/cert.pem")
modparam("tls_mgm", "private_key", "[sip]/etc/opensips/tls/ckey.pem")
modparam("tls_mgm", "require_cert", "[sip]0")
modparam("tls_mgm", "tls_method", "[sip]TLSv1")
modparam("tls_mgm", "verify_cert", "[sip]0")
modparam("tls_mgm", "match_sip_domain", "[sip]*")
modparam("tls_mgm", "match_ip_address", "[sip]*")

modparam("tls_mgm", "client_domain", "sip1")
modparam("tls_mgm", "ca_list", "[sip1]/etc/letsencrypt/fullchain.pem")
modparam("tls_mgm", "certificate", "[sip1]/etc/opensips/tls/cert.pem")
modparam("tls_mgm", "private_key", "[sip1]/etc/opensips/tls/ckey.pem")
modparam("tls_mgm", "require_cert", "[sip1]0")
modparam("tls_mgm", "tls_method", "[sip1]TLSv1")
modparam("tls_mgm", "verify_cert", "[sip1]0")
modparam("tls_mgm", "match_sip_domain", "[sip]*")
modparam("tls_mgm", "match_ip_address", "[sip]*")

loadmodule "proto_wss.so"
modparam("proto_wss", "require_origin", no)
loadmodule "proto_ws.so"
modparam("proto_ws", "require_origin", no)

i have tried wolfssl aswell
any ideas :(

Sent with [Proton Mail](https://proton.me/) secure email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221215/3de255ec/attachment.html>


More information about the Users mailing list