SAMPLE Leaf Certificate — Expired
A correctly signed leaf whose notAfter fell in the past (2020). The only thing wrong with it is the clock, which makes it the clean way to assert that an expiry error is reported as expiry and not as a signature failure.
-----BEGIN CERTIFICATE-----
MIIFEzCCA3ugAwIBAgIDcBAEMA0GCSqGSIb3DQEBCwUAMF8xCzAJBgNVBAYTAlpa
MSIwIAYDVQQKDBlOb3Z1cyBFeGFtcGxlcyBTQU1QTEUgUEtJMSwwKgYDVQQDDCNO
b3Z1cyBFeGFtcGxlcyBTQU1QTEUgSXNzdWluZyBDQSBJMjAeFw0xOTAxMDEwMDAw
MDBaFw0yMDAxMDEwMDAwMDBaMFYxCzAJBgNVBAYTAlpaMSIwIAYDVQQKDBlOb3Z1
cyBFeGFtcGxlcyBTQU1QTEUgUEtJMSMwIQYDVQQDDBpleHBpcmVkLnBraS5zYW1w
bGUuZXhhbXBsZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALxUPhSr
6ToYJnKbVIQmZPUIvy3PYIpwQXR1VX1+xgQ9S63t4dswStGbqsyoa142oPoTHMkV
aJcqD536Qhpp/ia9kLTwBNFI7htO8Fn9SOnYYO3Tx45HlgBMw6k9rW9uOI52ClT1
c04+1+i9wVL3mXxYiqsxmadqXkEieegqHtd10kXbQ1LaBtVWLudD7PUCUeqCr/W9
Lo7inO3YS/3mur1q3IFS4ICo9NmrkHoS6mfBzmrJsT6a/y1tJHBMAkoWxz3NqpIG
e2KjaHMW0gfQHTtRZ9xkVQHGNYbiN5yz0OMS+285oop8hGnNJz0X3MsyK7WSP9yx
2ja1u5UmzFl/vbcCAwEAAaOCAV8wggFbMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYE
FEdR0m4GbyDrby5cC30XofkfFKrvMA4GA1UdDwEB/wQEAwIFoDAlBgNVHREEHjAc
ghpleHBpcmVkLnBraS5zYW1wbGUuZXhhbXBsZTAdBgNVHSUEFjAUBggrBgEFBQcD
AQYIKwYBBQUHAwIwHwYDVR0jBBgwFoAUD8kkTA/cebaqtrM3GaVPA5Df0PowQAYD
VR0fBDkwNzA1oDOgMYYvaHR0cDovL2NybC5wa2kuc2FtcGxlLmV4YW1wbGUvaXNz
dWluZy1jYS1pMi5jcmwwcwYIKwYBBQUHAQEEZzBlMCoGCCsGAQUFBzABhh5odHRw
Oi8vb2NzcC5wa2kuc2FtcGxlLmV4YW1wbGUwNwYIKwYBBQUHMAKGK2h0dHA6Ly9w
a2kuc2FtcGxlLmV4YW1wbGUvaXNzdWluZy1jYS1pMi5jcnQwDQYJKoZIhvcNAQEL
BQADggGBADwuPw24TdPS1jKPc8+VoD4HxpGW8citcgg3D6fSmRA2VzhmdXmnFoPX
nLUO86Bioxfb5YaBlAYn5krxL4ivGLlkj+5Lnjdg44LC3XJrrdbj4+lKq/At4GcB
6f7nun7AaUTDho4N0+5240CJrRTkDekhLOJyplv9M6qsOIFWeSW9Q9CT5zT/Aicx
/6zY2N416WtA8pcvaZq/hKUCBtBVIheatlUgSzO2jSNDq38i+7R+Q09sfOTnsodn
jwTuvCJC6qJg6Rk87gAOx5qJMeTAMipMDltVo7B5InUtJAdkLtVF4NMKpeLxyYP+
vewdEVlqCVGk8jElrx53mXAY0VmkpxopeCPzVWfwWB8NIiRDTuXglOFQayCBUieJ
0JSgo7O4XhkJdbZwn8pZtEKJG8VN5MKNCG3/a6zaNCkYlCHeBsKAIgXTQTT7PhlZ
V2SSQODpvUnPR0OLWrLMCN5aLUXLyoUIu4Sa0uWF3WR/KqQKBpSB8nti9aXl68+1
/3S7XBx8ng==
-----END CERTIFICATE-----
Specifications
- Validity
- 2019-01-01 to 2020-01-01
- Expired
- true
- Serial
- 0x701004
- Issuer
- Novus Examples SAMPLE Issuing CA I2
- Sample Only
- true
- Seed
- 70117
Testing contract
Expected to fail- Scenario
- Validate the chain at any present-day clock and read back the reported error.
- Expected result
- Validation fails with a certificate-expired error naming notAfter 2020-01-01; the signature and issuer checks still pass.
What is a .pem file?
PEM (Privacy-Enhanced Mail) is a text container that Base64-encodes DER binary data between BEGIN/END header lines, used to hold X.509 certificates, certificate requests, and keys. A single .pem file may contain a certificate, a chain, or a private key, which makes it the most common format for TLS material.
How to use this file
Use an example .pem certificate to test X.509 and TLS parsers, PEM decoders, certificate-chain validators, and PEM-to-DER converters. This is published sample material — never a real production key.
How to use this file for testing
“SAMPLE Leaf Certificate — Expired” is a deterministic Novus Examples fixture for Certificate & key testing, Error handling. Self-signed X.509 certificates (PEM, CRT, DER), a CSR, RSA and Ed25519 keys, an SSH public key, a PKCS#12 bundle, and an htpasswd file — all published sample-only material, for testing certificate parsers, TLS tooling, keystore importers, and PEM/DER decoders.
Documented properties for this file: seed 70117. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
This is published, SAMPLE-only security material — never a real secret. Point certificate, key, or token parsers at it, test PEM/DER decoding and PKCS handling, and confirm your tooling reads the documented fields; any sample password is printed on this page.
This is a published, sample-only certificate/key. Parse it, verify the chain or signature, and test PEM↔DER conversion — never deploy it anywhere real.
Related files
- pemSAMPLE Certificate Revocation List — EmptyA correctly signed CRL with an absent revokedCertificates field — what a CA publishes when it has revoked nothing. Parsers that assume the list is always present tend to fault here rather than report zero entries.

- pemSAMPLE Certificate Revocation List — StaleA validly signed CRL whose nextUpdate passed in 2020. Whether a client hard-fails, soft-fails, or silently trusts stale revocation data is a real policy decision, and this is the fixture that reveals which one it made.

- csrSAMPLE CSR — Intentionally Corrupt Base64An intentionally corrupt PKCS#10 request: the PEM armour is intact but four illegal characters have been substituted into the Base64 body, so decoding fails part-way. It exists to check that a CSR intake path reports a parse error instead of a stack trace or a partially populated record.

- pemSAMPLE Leaf Certificate — No SAN ExtensionA pre-RFC 6125-style certificate carrying only a Common Name and no subjectAltName extension. Every current browser and most TLS libraries reject it outright, which makes it a precise legacy-compatibility probe.

- pemSAMPLE Leaf Certificate — RevokedA leaf that is valid in every structural respect and revoked in the matching CRL and OCSP response shipped alongside it. It is the fixture that proves a client actually performs revocation checking rather than stopping at path building.

- pemSAMPLE Leaf Certificate — SAN/CN MismatchThe certificate's CN is app.pki.sample.example but its only SAN is different.pki.sample.example. RFC 6125 clients must ignore the CN entirely, so this separates modern verifiers from ones still falling back to Common Name.

Generated by generation/security_p7.py. Free for any use, no attribution required — license.