AshHooks.Http.CertSan (AshHooks v1.0.3)

Copy Markdown View Source

iPAddress Subject-Alternative-Name matching for the literal-IP https floor (ADR-0009's TLS posture): a destination addressed by IP literal has no hostname for RFC 6125 to check, so the peer certificate must carry the exact IP in its iPAddress SAN — chain validation alone would let ANY publicly-trusted cert authenticate the peer.

Works on the DER bytes :ssl.peercert/1 returns. Fails CLOSED: a malformed certificate, an undecodable SAN extension, or a missing SAN never matches.

Summary

Functions

ip_san_match?(der, address)

@spec ip_san_match?(binary(), :inet.ip_address()) :: boolean()