Skip to content

Instantly share code, notes, and snippets.

@ferdy-lw
Created December 10, 2015 22:28
Show Gist options
  • Save ferdy-lw/a841a848ae3a00296e5a to your computer and use it in GitHub Desktop.
Save ferdy-lw/a841a848ae3a00296e5a to your computer and use it in GitHub Desktop.
Create self signed cert in one line
openssl req -x509 -newkey rsa:2048 -keyout host.example.com.key -out host.example.com.pem -days 1024 -nodes -subj "/C=US/ST=CA/L=Los Gatos/O=MyCo/OU=myOrg/CN=host.example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment