Skip to content. | Skip to navigation

Personal tools


You are here: Home / Notes / "Self-Signed" SSL certificate

"Self-Signed" SSL certificate

Generate "Self-Signed" SSL certificate

Generate new key an CSR, then self signed certificate:

cd /etc/ssl
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Generate CSR using old key:

openssl req -new -key server.key -out server.csr