Documentation
¶
Overview ¶
Package extensions provides types representing X509 certificate extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrTrailingBytes indicates that trailing bytes were found after the // extension value. ErrTrailingBytes = errors.New("trailing ASN.1 bytes") )
Functions ¶
Types ¶
type AuthorityKeyIdentifier ¶
type AuthorityKeyIdentifier struct { Critical bool ID []byte Issuer asn1.RawValue SerialNumber *big.Int }
AuthorityKeyIdentifier represents an X509 authority key identifier extension as defined in RFC 5280 section 4.2.1.1.
type BasicConstraints ¶
BasicConstraints represents an X509 basic constraints extension as defined in RFC 5280 section 4.2.1.9.
type ExtendedKeyUsage ¶
type ExtendedKeyUsage struct { Critical bool OIDs []asn1.ObjectIdentifier }
ExtendedKeyUsage represents an X509 extended key usage extension as defined in RFC5280 section 4.2.1.12.
type KeyUsage ¶
KeyUsage represents an X509 key usage extension as defined in RFC5280 section 4.2.1.3.
type SubjectAltName ¶
type SubjectAltName struct { Critical bool DNSNames []string EmailAddresses []string IPAddresses []net.IP URIs []*url.URL }
SubjectAltName represents a subject alternative name extension as defined in RFC5280 section 4.2.1.6.
type SubjectKeyIdentifier ¶
SubjectKeyIdentifier represents an X509 subject key identifier extension as defined in RFC 5280 section 4.2.1.2.