package pkix

Import Path
	crypto/x509/pkix (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package

Involved Source Files Package pkix contains shared, low level structures used for ASN.1 parsing and serialization of X.509 certificates, CRL and OCSP.
Package-Level Type Names (total 10)
/* sort by: | */
AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC 5280, section 4.1.1.2. Algorithm asn1.ObjectIdentifier Parameters asn1.RawValue
AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4. Type asn1.ObjectIdentifier Value any
AttributeTypeAndValueSET represents a set of ASN.1 sequences of [AttributeTypeAndValue] sequences from RFC 2986 (PKCS #10). Type asn1.ObjectIdentifier Value [][]AttributeTypeAndValue
CertificateList represents the ASN.1 structure of the same name. See RFC 5280, section 5.1. Use Certificate.CheckCRLSignature to verify the signature. Deprecated: x509.RevocationList should be used instead. SignatureAlgorithm AlgorithmIdentifier SignatureValue asn1.BitString TBSCertList TBSCertificateList HasExpired reports whether certList should have been updated by now. func crypto/x509.ParseCRL(crlBytes []byte) (*CertificateList, error) func crypto/x509.ParseDERCRL(derBytes []byte) (*CertificateList, error) func crypto/x509.(*Certificate).CheckCRLSignature(crl *CertificateList) error
Extension represents the ASN.1 structure of the same name. See RFC 5280, section 4.2. Critical bool Id asn1.ObjectIdentifier Value []byte
Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an [RDNSequence]. CommonName string Country []string ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. Locality []string Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. Organization []string OrganizationalUnit []string PostalCode []string Province []string SerialNumber string StreetAddress []string FillFromRDNSequence populates n from the provided [RDNSequence]. Multi-entry RDNs are flattened, all entries are added to the relevant n fields, and the grouping is not preserved. String returns the string form of n, roughly following the RFC 2253 Distinguished Names syntax. ToRDNSequence converts n into a single [RDNSequence]. The following attributes are encoded as multi-value RDNs: - Country - Organization - OrganizationalUnit - Locality - Province - StreetAddress - PostalCode Each ExtraNames entry is encoded as an individual RDN. Name : expvar.Var Name : fmt.Stringer
String returns a string representation of the sequence r, roughly following the RFC 2253 Distinguished Names syntax. RDNSequence : expvar.Var RDNSequence : fmt.Stringer func Name.ToRDNSequence() (ret RDNSequence) func (*Name).FillFromRDNSequence(rdns *RDNSequence)
RevokedCertificate represents the ASN.1 structure of the same name. See RFC 5280, section 5.1. Extensions []Extension RevocationTime time.Time SerialNumber *big.Int func crypto/x509.(*Certificate).CreateCRL(rand io.Reader, priv any, revokedCerts []RevokedCertificate, now, expiry time.Time) (crlBytes []byte, err error)
TBSCertificateList represents the ASN.1 structure of the same name. See RFC 5280, section 5.1. Deprecated: x509.RevocationList should be used instead. Extensions []Extension Issuer RDNSequence NextUpdate time.Time Raw asn1.RawContent RevokedCertificates []RevokedCertificate Signature AlgorithmIdentifier ThisUpdate time.Time Version int