std.x.tls.cert [x] std.x.tls.cert.Cert pub struct Cert { version: int, serial: List[byte], sig_alg: str, issuer: List[byte], issuer_cn: str, subject: List[byte], subject_cn: str, not_before: int, not_after: int, spki_alg: str, spki_key: List[byte], has_bc: bool, is_ca: bool, path_len: int, key_usage: int, has_san: bool, san: List[str], crit_unknown: str, tbs: List[byte], sig: List[byte], sig_params: List[byte], spki_curve: str, has_eku: bool, eku: List[str], has_name_constraints: bool, } — A parsed X.509 certificate — the fields wolf-wws ws05 reads, plus the raw material validation needs (tbs is the exact DER of the TBSCertificate, the octets the signature is over; issuer/subject are the raw Name encodings, the chaining currency). std.x.tls.cert.parse pub fn parse(bytes: List[byte]) -> Cert ! {der} — Parse ONE DER certificate occupying the whole of bytes (RFC 5280 §4.1 over X.690 DER; trailing bytes reject). std.x.tls.cert.cert_end pub fn cert_end(chain: List[byte], offset: int) -> int ! {der} — The end offset (exclusive) of the DER certificate starting at offset in chain — the boundary walker for CONCATENATED DER (sc21's certificate_list entries, joined). std.x.tls.cert.oid_ed25519 pub fn oid_ed25519() -> str — The Ed25519 algorithm OID (RFC 8410), the key and the signature algorithm at once. std.x.tls.cert.oid_ecdsa_sha256 pub fn oid_ecdsa_sha256() -> str — The ecdsa-with-SHA256 signature algorithm OID (X9.62 / RFC 5480 — the ES256 certificate signature). std.x.tls.cert.oid_ec_public_key pub fn oid_ec_public_key() -> str — The id-ecPublicKey OID (X9.62 — an EC subjectPublicKey). std.x.tls.cert.alg_name pub fn alg_name(dotted: str) -> str — Classify a dotted algorithm OID: "ed25519" (1.3.101.112), "rsa" (the PKCS#1 arc — signature algorithms and rsaEncryption), "ecdsa" (the X9.62 arc — ECDSA signatures and id-ecPublicKey), "ed448" (1.3.101.113), else "unknown". std.x.tls.cert.ku_digital_signature pub fn ku_digital_signature() -> int — KeyUsage bit weight: digitalSignature (bit 0). std.x.tls.cert.ku_key_cert_sign pub fn ku_key_cert_sign() -> int — KeyUsage bit weight: keyCertSign (bit 5) — the bit an issuing CA's keyUsage must assert (§4.2.1.3). std.x.tls.cert.host_matches pub fn host_matches(pattern: str, host: str) -> bool — Exact, case-insensitive DNS name match (DNS names compare case-insensitively; both sides are lowered). std.x.tls.cert.timestamp pub fn timestamp(y: int, mo: int, d: int, h: int, mi: int, s: int) -> int — Build the compact yyyymmddhhmmss timestamp validate_chain and the Cert fields speak (UTC). std.x.tls.cert.oid_rsa_encryption pub fn oid_rsa_encryption() -> str — The rsaEncryption key OID (RFC 8017 A.1; RFC 3279 §2.3.1): an RSA subjectPublicKey whose BIT STRING holds the DER RSAPublicKey. std.x.tls.cert.oid_secp256r1 pub fn oid_secp256r1() -> str — The prime256v1 (P-256) named-curve OID (RFC 5480 §2.1.1.1). std.x.tls.cert.oid_secp384r1 pub fn oid_secp384r1() -> str — The secp384r1 (P-384) named-curve OID (RFC 5480 §2.1.1.1). std.x.tls.cert.oid_server_auth pub fn oid_server_auth() -> str — The id-kp-serverAuth key purpose (RFC 5280 §4.2.1.12): the extendedKeyUsage value a TLS server's certificate must allow. std.x.tls.cert.verify_signed_by pub fn verify_signed_by(child: Cert, issuer: Cert) -> int ! { der, unsupported_alg, bad_signature, weak_key, } — Verify child's signature over its TBSCertificate bytes with issuer's key. std.x.tls.cert.san_matches pub fn san_matches(pattern: str, host: str) -> bool — RFC 9525 §6.3 dNSName matching (DNS names compare case-insensitively; both sides are lowered). std.x.tls.cert.validate_path pub fn validate_path(chain: List[byte], hostname: str, roots: List[byte], now: int) -> Cert ! { der, unsupported_alg, bad_signature, expired, not_yet_valid, name_mismatch, not_ca, issuer_mismatch, unknown_critical, weak_key, bad_usage, name_constraints, } — PATH VALIDATION against a root set (sc79, RFC 5280 §6.1 in the subset the module header names): build a path from the peer's leaf to one of the caller's roots and validate it at the SUPPLIED time, returning the parsed LEAF. std.x.tls.cert.validate_chain pub fn validate_chain(chain: List[byte], hostname: str, anchor: List[byte], now: int) -> Cert ! { der, unsupported_alg, bad_signature, expired, not_yet_valid, name_mismatch, not_ca, issuer_mismatch, unknown_critical, weak_key, bad_usage, name_constraints, } — THE ws05 SEAM (frozen in shape since sc22): validate the peer's chain against ONE trust anchor — validate_path with a root set of exactly anchor, so it builds, judges and refuses exactly as that function does (sc79 widened what it accepts: RSA, RSA-PSS and P-384 signatures, RFC 9525 wildcards; and what it refuses by name: weak_key, bad_usage, name_constraints). std.x.tls.cert.to_hex pub fn to_hex(b: List[byte]) -> str — Lowercase hex of a byte list.