go1.20.5
GoThrough

nss.CKA_NSS_SERVER_DISTRUST_AFTER

const CKA_NSS_SERVER_DISTRUST_AFTER = iota

nss.Constraint

// Constraint is a constraint to be applied to a certificate or // certificate chain. type Constraint interface { Kind() Kind }

nss.Parse

// Parse parses a NSS certdata.txt formatted file, returning only // trusted serverAuth roots, as well as any additional constraints. This parser // is very opinionated, only returning roots that are currently trusted for // serverAuth. As such roots returned by this package should only be used for // making trust decisions about serverAuth certificates, as the trust status for // other uses is not considered. Using the roots returned by this package for // trust decisions should be done carefully. // // Some roots returned by the parser may include additional constraints // (currently only DistrustAfter) which need to be considered when verifying // certificates which chain to them. // // Parse is not intended to be a general purpose parser for certdata.txt. func Parse(r io.Reader) ([]*Certificate, error)