Skip to content
Novus Examples
pem1.4 KB

SAMPLE Leaf Certificate — Self-Signed

An end-entity certificate that signs itself and chains to nothing — the shape a development server produces when nobody ran a CA. It is internally consistent, so the only defect a verifier can find is the missing trust anchor.

Preview — first 24 linespem
-----BEGIN CERTIFICATE-----
MIID0DCCArigAwIBAgIDcBALMA0GCSqGSIb3DQEBCwUAMFkxCzAJBgNVBAYTAlpa
MSIwIAYDVQQKDBlOb3Z1cyBFeGFtcGxlcyBTQU1QTEUgUEtJMSYwJAYDVQQDDB1z
ZWxmc2lnbmVkLnBraS5zYW1wbGUuZXhhbXBsZTAeFw0yNjAxMDEwMDAwMDBaFw0y
NzAxMDEwMDAwMDBaMFkxCzAJBgNVBAYTAlpaMSIwIAYDVQQKDBlOb3Z1cyBFeGFt
cGxlcyBTQU1QTEUgUEtJMSYwJAYDVQQDDB1zZWxmc2lnbmVkLnBraS5zYW1wbGUu
ZXhhbXBsZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALxUPhSr6ToY
JnKbVIQmZPUIvy3PYIpwQXR1VX1+xgQ9S63t4dswStGbqsyoa142oPoTHMkVaJcq
D536Qhpp/ia9kLTwBNFI7htO8Fn9SOnYYO3Tx45HlgBMw6k9rW9uOI52ClT1c04+
1+i9wVL3mXxYiqsxmadqXkEieegqHtd10kXbQ1LaBtVWLudD7PUCUeqCr/W9Lo7i
nO3YS/3mur1q3IFS4ICo9NmrkHoS6mfBzmrJsT6a/y1tJHBMAkoWxz3NqpIGe2Kj
aHMW0gfQHTtRZ9xkVQHGNYbiN5yz0OMS+285oop8hGnNJz0X3MsyK7WSP9yx2ja1
u5UmzFl/vbcCAwEAAaOBoDCBnTAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBRHUdJu
Bm8g628uXAt9F6H5HxSq7zAOBgNVHQ8BAf8EBAMCBaAwKAYDVR0RBCEwH4Idc2Vs
ZnNpZ25lZC5wa2kuc2FtcGxlLmV4YW1wbGUwEwYDVR0lBAwwCgYIKwYBBQUHAwEw
HwYDVR0jBBgwFoAUR1HSbgZvIOtvLlwLfReh+R8Uqu8wDQYJKoZIhvcNAQELBQAD
ggEBADOKpJUHX2vlsnNeh5ZX7f2Bt8NuO19VCUM6Rp2OvbcdhXPpoyacHwCc5WsO
2izj9bbSglGk5zQxb9YGPmBd1hqayYb2HMvdVBiDdhvRUlBDLdjrUpSzsF0c4Rhw
uLCzcqgaYWw8N43TNJ6smPurpJ7GPIAhOzP36KChogjHnMub0Xv3MjDiMQIS7jhx
K1hXbHZgz+KKU5l5+wtSn9eBff+IJVxnqHXtNTsXo7HIZrlf7HauZuM+WqViaqf7
RzYYVrdlPAxhMjbBVspSHbAUrn6IH49dTeVvs5qoVWZMg3MxmJ7qv2UzjbI6WGbq
XSIkWE02rUyNiK+E2Ca029cnWVQ=
-----END CERTIFICATE-----

Specifications

Self Signed
true
Issuer
itself
Basic Constraints
CA:FALSE
Serial
0x70100b
Sample Only
true
Seed
70117

Testing contract

Expected to fail
Scenario
Validate this certificate against a trust store containing the SAMPLE root but not the certificate itself.
Expected result
Validation fails with a self-signed/unknown-issuer error while the signature over its own TBSCertificate still checks out.

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 — Self-Signed” 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.

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