Nimony

The road to Nim 3

x509

nimony/lib/std/crypto/x509.nim

X.509 certificates (RFC 5280), as much of them as a TLS client needs to decide whether to believe a server: DER parsing, signature checks, chain building to a trust anchor, validity periods, and host name matching (RFC 6125).

The parser is strict and small. Anything it does not understand that is marked critical makes the certificate unusable, as RFC 5280 requires; anything else is skipped.