Snippets

Alexey ilyaskin self-sign certificate

Created by Alexey ilyaskin last modified
1
2
3
4
5
6
7
8
9
# creating the private server key
openssl genrsa -des3 -out server.key 2048
# creating a certificate signing request
openssl req -new -key server.key -out server.csr
# remove the passphrase
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
# sign SSL certificate
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.