Skip to content
Malcolm edited this page Aug 24, 2016 · 2 revisions

An example key pair used in the wiki articles.

⚠️ Do not use these certificates outside of the examples. They are obviously not secure.

Private Key

-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAwfQqua1oh3ME3GhmDZpGpMLOTi8AODkD58XWC5HXYwlbRKjb
MepFpQ/asY2BJO2oo+CNwK4KVk1YM67a+HQ+Vj5Ol+Q6h0epBktutIoVZRLBnhQG
iz7efGR1aKIUGf59u2zogaG1+26b8Wp6pPaS0SArgsVWxmoqJXuylpcaHnF4WSQF
Pr17TcL8CbEgcBetzZ0NApcdmQq5J9fFXOA41TaqKcigw0+i7bz3TzAFpxNIEHHm
o/dhxmufYJNOX9lLnsshwDZS5eDmrg7tVpOFFylFoMRPk+Wmd7ZzFGmNMRPiKHN8
RkiTFEzQRFEtNxX36VIJ+M8hse1cSRHiCM/RiwIDAQABAoIBADXHekFZ7+3+2o4y
9Hk5GfV9fq73IVx1krulg6BZpBt18LStDXpdt0n5h25MCk8vBt/J2ARhPcSIVbie
92CE+vP2+tvrEL+KAzgXmm69CwmnlcA7VUUu/YoIYPXOWzyJ8FsT67RmHovFM8BR
AgjTxgnunaH5DgKeVWlnTzGqXDesS08xOTR0Igo3BPPopAryoJJ98s0wABaPkhap
ZMPuMGpL0nd3fGGzL9Np1UQwYOaCCyTobZPlTIVAdcaIkGM55nRZIo65w8Gb+zNE
onPlofRic4Rc8F/G6/0HUA20+ZVKYttYxyU68b05PzRGIp8Yt03D/pWz9ZQ+8QTI
6caw3YECgYEA5UFIeYy748J9AJDWp64ayysuqRSUOwX4a27FS4oYqJyVZBicmHs9
LU/sGhITg3yhR5J2VMj0f+QEbpYUow1S6Ba/I5zSHN01OiFX7BXK+9UjTuV4g+5E
hYoFdSv1Z1ycOsPzUxHy9lDhvZrhwchBhszbpPhaIQSiB4m9GKbn65ECgYEA2JSc
JVbeZOiEtknyiLXylHXvaiP0nET5gBGbIjxzij3BKESJPPPVlFjgPQGGmdlCXM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BBQADggEP
ADCCAQoCggEBAMH0KrmtaIdzBNxoZg2aRqTCzk4vADg5A+fF1guR12MJW0So2zHq
RaUP2rGNgSTtqKPgjcCuClZNWDOu2vh0PlY+TpfkOodHqQZLbrSKFWUSwZ4UBos+
3nxkdWiiFBn+fbts6IGhtftum/FqeqT2ktEgK4LFVsZqKiV7spaXGh5xeFkkBT69
e03C/AmxIHAXrc2dDQKXHZkKuSfXxVzgONU2qinIoMNPou28908wBacTSBBx5qP3
YcZrn2CTTl/ZS57LIcA2UuXg5q4O7VaThRcpRaDET5Plpne2cxRpjTET4ihzfEZI
kxRM0ERRLTcV9+lSCfjPIbHtXEkR4gjP0YsCAwEAAaOBxDCBwTAdBgNVHQ4EFgQU
GZDJjImN4+YSyJpi0y3t5DgdHsAwgZEGA1UdIwSBiTCBhoAUGZDJjImN4+YSyJpi
0y3t5DgdHsChY6RhMF8xCzAJBgNVBAYTAk5aMREwDwYDVQQIEwhBdWNrbGFuZDER
MA8GA1UEBxMIQXVja2xhbmQxFDASBgNVBAoTC0VtYXJyZWYgTHRkMRQwEgYDVQQD
EwtFbWFycmVmIEx0ZIIJAKkwSUodVk9sMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcN
AQELBQADggEBAKzSq9e833GJqGtS8a+3Za9uTgNKlPrrQEbhe76/2isNaiQZXSIn
nFV+7rNTtJU3YUvVNfOpVxJ+O9VIikWhrWmsMbwk7Wmot2xVeNU9wJ1wEMHXtueh
bKODp+Mmy875abZJDBO+18GS2A1AQ8YYFEY0Nk48wkmo8m39z7FyRaTv9Z+ptd4R
shFhkZS3HtWiGr5/1eaZVaAzYXZ1RqsrDYbhJYzGL0gRWVgTnlEfPN1eB5b5PZ5w
wd9M1PmG/PCZvTritx64Q3Hp8/kJyBnFzfIBGwGv+4SpF1XQcaPZeBtsaBVksxmJ
lW26zyteFqF6F7Su+IVT5u3tR0EtSBfcFd8=
-----END CERTIFICATE-----

Create Your Own

To create your own key pair, use the following openssl command.

openssl req -x509 -sha256 -nodes -days 730 -newkey rsa:2048 -keyout private.key -out public.crt

This command will generate two files in the current directory; private.key and public.crt.

Clone this wiki locally