# Important # Add your IP in subjectAltName in the openssl.cnf before generating # certs sudo vim /etc/ssl/openssl.cnf # Add this line #subjectAltName=IP:192.168.0.2 mkdir -p ./certs openssl req \ -newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key \ -x509 -days 365 -out certs/domain.crt