Remember to configure the kurento server as secure in /etc/kurento/kurento.conf.json

Creating the pem file:

How to accept kurento cert in browser by adding NODE_TLS_REJECT_UNAUTHORIZED=0 in development this allows node to accept the self signed cert