Skip to content
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
README.txt
cacert_pass_helloworld.pem
cakey_pass_helloworld.pem
id_rsa
id_rsa.pub
privkey_1_rsa_1024.pem
privkey_1_rsa_2048.pem
privkey_1_rsa_512.pem
rsa_cert_1_1024.pem
rsa_cert_1_2048.pem
rsa_cert_1_512.pem

README.txt

This directory contains a collection of sample cryptographic keys and
certificates used for testing.

Example generation commands using example file names:

Generate unencrypted 2048 bit private RSA key
=============================================
$ openssl genrsa -out privkey_1_rsa_2048.pem 2048

Generate certificate using private RSA key
==========================================
$ openssl req -new -x509 -days 365 \
  -subj '/C=US/ST=Ohio/L=Columbus/CN=www.github.com/andrewdyates' \
  -key privkey_1_rsa_2048.pem \
  -out rsa_cert_1_2048.pem

i.e.
$ openssl req -new -x509 -days 365 -subj '/C=US/ST=Ohio/L=Columbus/CN=Andrew Yates/O=http:\/\/github.com\/andrewdyates' -key privkey_1_rsa_2048.pem -out rsa_cert_1_2048.pem

Print certificate to text
=========================
$ openssl x509 -text -in rsa_cert_1_2048.pem

Print RSA key to text
=====================
$ openssl rsa -text -in privkey_1_rsa_2048.pem
Something went wrong with that request. Please try again.