Skip to content

Instantly share code, notes, and snippets.

View ahey's full-sized avatar

Alan Heywood ahey

  • Softweb Development Pty Ltd
  • Brisbane, Australia
  • 08:04 (UTC +10:00)
View GitHub Profile
@tsaarni
tsaarni / openssl-notes.txt
Created October 22, 2016 08:50
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