Skip to content

Instantly share code, notes, and snippets.

View patryk's full-sized avatar
🍊

Patryk Szczygłowski patryk

🍊
View GitHub Profile
@patryk
patryk / openssl-notes.txt
Created April 11, 2020 21:40 — forked from tsaarni/openssl-notes.txt
Generate self-signed certs with different key types
*** RSA
# Generate self-signed certificate with RSA 4096 key-pair
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout rsakey.pem -out rsacert.pem
# print private and public key
openssl rsa -in rsakey.pem -text -noout
# print certificate
openssl x509 -in rsacert.pem -text -noout