Skip to content

Instantly share code, notes, and snippets.

@NanoDano
Last active August 9, 2020 04:32
Show Gist options
  • Save NanoDano/53f75289be55e157e2df7fef2de62c2e to your computer and use it in GitHub Desktop.
Save NanoDano/53f75289be55e157e2df7fef2de62c2e to your computer and use it in GitHub Desktop.
Create self-signed SSL certificate with OpenSSL command-line tool
#!/usr/bin/bash
openssl \
req \
-newkey rsa:2048 -nodes \
-keyout self-signed.key \
-x509 -days 36500 -out self-signed.cert \
-subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=www.example.com/[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment