mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added an openssl cheatsheet.
This commit is contained in:
parent
e3d6976a03
commit
f3c37a37eb
1 changed files with 10 additions and 0 deletions
10
cheatsheets/openssl
Normal file
10
cheatsheets/openssl
Normal file
|
@ -0,0 +1,10 @@
|
|||
To create a 2048-bit private key:
|
||||
openssl genrsa -out server.key 2048
|
||||
|
||||
To create the Certificate Signing Request (CSR):
|
||||
openssl req -new -key server.key -out server.csr
|
||||
|
||||
To sign a certificate using a private key and CSR:
|
||||
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
||||
|
||||
(The above commands may be run in sequence to generate a self-signed SSL certificate.)
|
Loading…
Reference in a new issue