# `AshHooks.Http.CertSan`
[🔗](https://github.com/baselabs/ash_hooks/blob/v3.0.0/lib/ash_hooks/http/cert_san.ex#L1)

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.

# `ip_san_match?`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
