Skip to content

Instantly share code, notes, and snippets.

@ViKingIX
Created October 23, 2015 05:45
Show Gist options
  • Save ViKingIX/4730b30a3e07347e2e4d to your computer and use it in GitHub Desktop.
Save ViKingIX/4730b30a3e07347e2e4d to your computer and use it in GitHub Desktop.
Create a self signed certificate in one line
openssl req -x509 -newkey rsa:2048 -keyout $NAME.key -out $NAME.pem -days 365 -nodes \
-subj "/C=TW/ST=Taiwan/L=Taipei/O=$ORG/OU=$UNIT/CN=$NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment