Purpose
There are cases when we'd need a quick way to generate x.509 certificate for scripting adhoc purposes without a need to create a CSR file or putting the values from the terminal by hand.Prerequisites
Tested with Centos 7/stream8. $yum install openssl -y
Solution
openssl req -subj '/CN=lol.mazia.rz/O=MZIARZ/C=US' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 \ -keyout /etc/httpd/certs/private-key.pem \ -out /etc/httpd/certs/cert.pemAnd here you go. Have fun.
Brak komentarzy:
Prześlij komentarz