x509/pkix
少于1分钟
pkix
https://pkg.go.dev/crypto/x509/pkix@go1.20.1
Package pkix contains shared, low level structures used for ASN.1 parsing and serialization of X.509 certificates, CRL and OCSP.
常量
This section is empty.
变量
This section is empty.
函数
This section is empty.
类型
type AlgorithmIdentifier
|
|
AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC 5280, section 4.1.1.2.
type AttributeTypeAndValue
|
|
AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4.
type AttributeTypeAndValueSET <- go1.3
|
|
AttributeTypeAndValueSET represents a set of ASN.1 sequences of AttributeTypeAndValue sequences from RFC 2986 (PKCS #10).
type CertificateList <- DEPRECATED
type Extension
|
|
Extension represents the ASN.1 structure of the same name. See RFC 5280, section 4.2.
type Name
|
|
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.
(*Name) FillFromRDNSequence
|
|
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.
(Name) String <- go1.10
|
|
String returns the string form of n, roughly following the RFC 2253 Distinguished Names syntax.
(Name) ToRDNSequence
|
|
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.
type RDNSequence
|
|
(RDNSequence) String <- go1.10
|
|
String returns a string representation of the sequence r, roughly following the RFC 2253 Distinguished Names syntax.
type RelativeDistinguishedNameSET
|
|
type RevokedCertificate
|
|
RevokedCertificate represents the ASN.1 structure of the same name. See RFC 5280, section 5.1.