Certificates & Keys · 4 files

Sample KEY Files

Private keys in PEM form: PKCS #8 EC, traditional PKCS #1 RSA, password-encrypted PKCS #8, and an OpenSSH Ed25519 key. They are published test fixtures — never use them for anything real.

All 4 KEY files

Download all with curl
Download 4 files (2.6 KB)Shell
# 4 files, 2.6 KB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/certificate/key/sample-ec-private.key
https://files.samplefiles.com/certificate/key/id_ed25519
https://files.samplefiles.com/certificate/key/sample-encrypted-private.key
https://files.samplefiles.com/certificate/key/sample-rsa-private.key
EOF
FileSizeDetailsDownload
EC private key (PKCS #8 PEM)sample-ec-private.key241 BDownload
SSH private key (OpenSSH Ed25519)id_ed25519387 BDownload
Encrypted private key (PKCS #8, password)sample-encrypted-private.key412 BDownload
RSA 2048 private key (PKCS #1 PEM)sample-rsa-private.key1.6 KBDownload

FAQ

Is it safe to publish these private keys?

They exist only for testing parsers and tooling. Because they are public, nothing signed or encrypted with them can be trusted — which is exactly why they must never be used in production.