Overview
Package pkix contains shared, low level structures used for ASN.1 parsing and
serialization of X.509 certificates, CRL and OCSP.
Index
- type AlgorithmIdentifier
- type AttributeTypeAndValueSET
- type Name
- type RDNSequence
- type RelativeDistinguishedNameSET
- type TBSCertificateList
type AlgorithmIdentifier
AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC
5280, section 4.1.1.2.
- type AttributeTypeAndValue struct {
- Value interface{}
- }
AttributeTypeAndValue mirrors the ASN.1 structure of the same name in
http://tools.ietf.org/html/rfc5280#section-4.1.2.4
type
¶
- type AttributeTypeAndValueSET struct {
- Type .ObjectIdentifier
- Value [][] `asn1:"set"`
- }
AttributeTypeAndValueSET represents a set of ASN.1 sequences of
AttributeTypeAndValue sequences from RFC 2986 (PKCS #10).
type CertificateList
- type CertificateList struct {
- TBSCertList TBSCertificateList
- SignatureAlgorithm
- SignatureValue asn1.
- }
func (*CertificateList) HasExpired
- func (certList *CertificateList) HasExpired(now .Time)
HasExpired reports whether certList should have been updated by now.
type Extension
Extension represents the ASN.1 structure of the same name. See RFC 5280, section
4.2.
- type Name struct {
- Country, Organization, OrganizationalUnit []string
- Locality, Province []
- StreetAddress, PostalCode []string
- SerialNumber, CommonName
- Names []AttributeTypeAndValue
- }
Name represents an X.509 distinguished name. This only includes the common
elements of a DN. When parsing, all elements are stored in Names and
non-standard elements can be extracted from there. When marshaling, elements in
ExtraNames are appended and override other values with the same OID.
- func (n *) FillFromRDNSequence(rdns *RDNSequence)
func (Name)
¶
- func (n ) String() string
String returns the string form of n, roughly following the RFC 2253
Distinguished Names syntax.
- func (n ) ToRDNSequence() (ret RDNSequence)
type
¶
func (RDNSequence)
¶
- func (r ) String() string
String returns a string representation of the sequence r, roughly following the
RFC 2253 Distinguished Names syntax.
type
¶
- type RelativeDistinguishedNameSET []
type RevokedCertificate
RevokedCertificate represents the ASN.1 structure of the same name. See RFC
5280, section 5.1.
- type TBSCertificateList struct {
- Raw .RawContent
- Version `asn1:"optional,default:0"`
- Signature AlgorithmIdentifier
- Issuer
- ThisUpdate time.
- NextUpdate time. `asn1:"optional"`
- RevokedCertificates []RevokedCertificate `asn1:"optional"`
- }
TBSCertificateList represents the ASN.1 structure of the same name. See RFC
5280, section 5.1.