You can create a self-signed certificate like here https://maketips.net/tip/104/self-signed-certificate-for-nginx

Then in webrtc2sip xml config use:

<ssl-certificates>
      ssl/path_to.key;
      ssl/path_to.crt;
      *;
      no
</ssl-certificates>

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>