You can create a self-signed certificate like here

Then in webrtc2sip xml config use:


Note that if your cert is self-signed and you want to use it from the browser (e.g. with SIPML stack) you should visit manually your socket address in the browser to enable (trust) certificate. e.g if you use 10062 WebSocket port you can create anchor:

<a href="https://ip_of_server:10062/" target="_blank">Enable certificate for sipML5</a>