Created
May 21, 2019 10:45
-
-
Save sevkin/8c2651f5ab4f569b5bf1ba067606b75f to your computer and use it in GitHub Desktop.
SSL generate without questions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CN := example.com | |
gen_key: | |
openssl req -nodes -newkey rsa:4096 -keyout $(CN).key.new -noout -subj \ | |
"/C=RU/CN=www.$(CN)" | |
gen_csr: | |
openssl req -new -key $(CN).key -out $(CN).csr -subj \ | |
"/C=RU/CN=www.$(CN)" | |
show_key: | |
openssl rsa -check -in $(CN).key | |
show_csr: | |
openssl req -text -noout -verify -in $(CN).csr | |
show_crt: | |
openssl x509 -text -noout -in $(CN).crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment