Skip to content
Novus Examples

Explore the test library

Find files, editable templates and browser test targets by what you need to make or test. Explore complete business kits for connected records, templates and expected results.

135 results

Page 4 of 6; 24 results per page.

Show the canonical directory
Preview of SAMPLE JWT — alg none, Unsigned
jwt
342 B
Actual file preview for SAMPLE JWT — alg none, Unsigned

SAMPLE JWT — alg none, Unsigned

An unsecured JWS: alg is none and the signature segment is empty, leaving only the trailing dot. Any verifier that accepts it will accept a claim set an attacker wrote, which is why this is the first negative test to run.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — Algorithm Confusion (HS256 over an RSA Public Key)
jwt
421 B
Actual file preview for SAMPLE JWT — Algorithm Confusion (HS256 over an RSA Public Key)

SAMPLE JWT — Algorithm Confusion (HS256 over an RSA Public Key)

The classic algorithm-confusion shape: a token that claims HS256 while its kid points at an RSA key, MACed with that key's public PEM as the shared secret. A verifier that picks its algorithm from the header rather than from the key type accepts it.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — EdDSA, Bad Signature
jwt
469 B
Actual file preview for SAMPLE JWT — EdDSA, Bad Signature

SAMPLE JWT — EdDSA, Bad Signature

The EdDSA token with one bit of its signature flipped. Ed25519 verification either succeeds or fails with no partial credit, which makes this the cleanest possible negative case.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Paired fixture
Preview of SAMPLE JWT — EdDSA, Valid
jwt
469 B
Actual file preview for SAMPLE JWT — EdDSA, Valid

SAMPLE JWT — EdDSA, Valid

An EdDSA (Ed25519) token with a fixed 64-byte signature and the same claim set as the RS256 reference. EdDSA signing is deterministic, so this token is reproducible in a way an ES256 one could never be.

File
JWT · Jwt
Use case
JWT / JWKS testing· Paired fixture
Preview of SAMPLE JWT — HS256 with a Published Secret
jwt
422 B
Actual file preview for SAMPLE JWT — HS256 with a Published Secret

SAMPLE JWT — HS256 with a Published Secret

A symmetric HS256 token whose secret is printed in the specs and shipped as an oct JWK, so a verifier can be stood up without any key exchange. It shares its claim set with the RS256 reference token.

File
JWT · Jwt
Use case
JWT / JWKS testing· Conversion set
Preview of SAMPLE JWT — RS256, Bad Signature
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Bad Signature

SAMPLE JWT — RS256, Bad Signature

The valid RS256 token with the last bit of its signature flipped. Header and payload are byte-identical to the valid twin, so any difference in outcome is entirely down to signature verification.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Paired fixture
Preview of SAMPLE JWT — RS256, Expired
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Expired

SAMPLE JWT — RS256, Expired

A correctly signed RS256 token whose exp passed on 2020-01-01. The signature still verifies, so it isolates expiry handling from every other check — including the libraries that validate the signature and then forget to look at exp.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — RS256, Not Yet Valid
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Not Yet Valid

SAMPLE JWT — RS256, Not Yet Valid

A valid signature over a claim set whose nbf is 2035. Many verifiers check exp diligently and skip nbf entirely, so this is the token that finds out.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — RS256, Signed by the Wrong Key
jwt
1 KB
Actual file preview for SAMPLE JWT — RS256, Signed by the Wrong Key

SAMPLE JWT — RS256, Signed by the Wrong Key

A perfectly well-formed RS256 signature made with the SAMPLE root key while the kid header still names the leaf key. Verifiers that trust the kid without checking the signature against that exact key accept it.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE JWT — RS256, Valid
jwt
720 B
Actual file preview for SAMPLE JWT — RS256, Valid

SAMPLE JWT — RS256, Valid

The reference token for this wave: RS256, signed by the SAMPLE leaf key, with iss, aud, iat, nbf, exp and jti all present and an expiry in 2036. Every other JWT here is a deliberate deviation from it.

File
JWT · Jwt
Use case
JWT / JWKS testing· Paired fixture
Preview of SAMPLE JWT — Unknown kid
jwt
731 B
Actual file preview for SAMPLE JWT — Unknown kid

SAMPLE JWT — Unknown kid

A genuinely valid RS256 signature whose kid names a key that has been rotated out of the JWK set. The right behaviour is a clean key-not-found error, not a silent fallback to whichever key happens to be first.

File
JWT · Jwt
Use case
JWT / JWKS testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate — EC P-256
pem
1.5 KB
Actual file preview for SAMPLE Leaf Certificate — EC P-256

SAMPLE Leaf Certificate — EC P-256

The elliptic-curve twin of the reference leaf: identical subject, SANs, EKU and issuer, but a P-256 subject public key instead of RSA-2048. Diff the two to isolate exactly what changes when a deployment migrates key types.

File
PEM · Pki
Use case
Certificate & key testing· Paired fixture
Preview of SAMPLE Leaf Certificate — Ed25519
pem
1.5 KB
Actual file preview for SAMPLE Leaf Certificate — Ed25519

SAMPLE Leaf Certificate — Ed25519

The third key-type variant of the reference leaf, carrying an Ed25519 subject public key. Older TLS stacks and keystores reject id-Ed25519 outright, which makes this a compact compatibility probe.

File
PEM · Pki
Use case
Certificate & key testing· Conversion set
Preview of SAMPLE Leaf Certificate — Expired
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — Expired

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.

File
PEM · Pki
Use case
Certificate & key testingError handling· Paired fixture
Preview of SAMPLE Leaf Certificate — IP Address SAN
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — IP Address SAN

SAMPLE Leaf Certificate — IP Address SAN

A leaf whose SAN carries both a DNS name and an iPAddress entry (192.0.2.10, from the RFC 5737 documentation range). Connecting by literal IP must match the iPAddress entry, never the DNS one.

File
PEM · Pki
Use case
Certificate & key testing· Conversion set
Preview of SAMPLE Leaf Certificate — No SAN Extension
pem
1.7 KB
Actual file preview for SAMPLE Leaf Certificate — No SAN Extension

SAMPLE Leaf Certificate — No SAN Extension

A 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.

File
PEM · Pki
Use case
Certificate & key testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate — Not Yet Valid
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — Not Yet Valid

SAMPLE Leaf Certificate — Not Yet Valid

The mirror of the expired leaf: identical in every respect except that notBefore is 2035, so it is rejected from the other side of the validity window. Pairs with it to prove a verifier distinguishes the two clock errors.

File
PEM · Pki
Use case
Certificate & key testingError handling· Paired fixture
Preview of SAMPLE Leaf Certificate — Revoked
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — Revoked

SAMPLE Leaf Certificate — Revoked

A 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.

File
PEM · Pki
Use case
Certificate & key testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate — RSA-2048
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — RSA-2048

SAMPLE Leaf Certificate — RSA-2048

The reference end-entity certificate for this wave: RSA-2048 subject key, two DNS SANs, serverAuth/clientAuth EKU, and AIA/CRL pointers to the fictional SAMPLE responder. Everything else in the p7 PKI is a deviation from this one.

File
PEM · Pki
Use case
Certificate & key testing· Paired fixture
Preview of SAMPLE Leaf Certificate — SAN/CN Mismatch
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — SAN/CN Mismatch

SAMPLE Leaf Certificate — SAN/CN Mismatch

The 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.

File
PEM · Pki
Use case
Certificate & key testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate — Self-Signed
pem
1.4 KB
Actual file preview for SAMPLE Leaf Certificate — Self-Signed

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.

File
PEM · Pki
Use case
Certificate & key testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate — Wildcard SAN
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — Wildcard SAN

SAMPLE Leaf Certificate — Wildcard SAN

A wildcard certificate covering *.wild.pki.sample.example plus the bare apex. Use it to check that a matcher accepts exactly one label and refuses to stretch the wildcard across a dot.

File
PEM · Pki
Use case
Certificate & key testing· Conversion set
Preview of SAMPLE Leaf Certificate — Wrong Common Name
pem
1.8 KB
Actual file preview for SAMPLE Leaf Certificate — Wrong Common Name

SAMPLE Leaf Certificate — Wrong Common Name

A valid, correctly chained certificate for the wrong host: both CN and SAN say wrong-host.pki.sample.example. Serve it for leaf.pki.sample.example to exercise the hostname-verification path on its own.

File
PEM · Pki
Use case
Certificate & key testingError handling· Conversion set
Preview of SAMPLE Leaf Certificate (DER)
der
1.3 KB
Actual file preview for SAMPLE Leaf Certificate (DER)

SAMPLE Leaf Certificate (DER)

Binary DER encoding of the SAMPLE leaf certificate — the same bytes the PEM twin Base64-wraps. Feed it to ASN.1 decoders, Java keystores, and DER-to-PEM converters.

File
DER · Pki · DER (binary)