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