Skip to content

Instantly share code, notes, and snippets.

@richturner
Created June 8, 2020 19:21
Show Gist options
  • Save richturner/484a8f6ab25128b6072e73091bffcd76 to your computer and use it in GitHub Desktop.
Save richturner/484a8f6ab25128b6072e73091bffcd76 to your computer and use it in GitHub Desktop.
openssl generate selfsigned PEM cert
#!/usr/bin/env sh
openssl req -x509 -new -nodes -subj "/C=GB/CN=OpenRemote Demo Cert/O=OpenRemote/OU=Demo" -addext "subjectAltName = DNS:localhost,IP:127.0.0.1" -newkey rsa:2048 -keyout localhost.pem -out localhost.pem -days 10950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment