Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Subject Subject Issuer Issuer NotBefore string `js:"notBefore"` NotAfter string `js:"notAfter"` AltNames []string `js:"altNames"` SignatureAlgorithm string `js:"signatureAlgorithm"` FingerPrint []byte `js:"fingerPrint"` PublicKey PublicKey `js:"publicKey"` }
Certificate is an X.509 certificate
type Issuer ¶
type Issuer struct { CommonName string `js:"commonName"` Country string StateOrProvinceName string `js:"stateOrProvinceName"` LocalityName string `js:"localityName"` OrganizationName string `js:"organizationName"` Names []RDN }
Issuer is a certificate issuer
type PublicKey ¶
type PublicKey struct { Algorithm string Key interface{} }
PublicKey is used for decryption and signature verification
type Subject ¶
type Subject struct { CommonName string `js:"commonName"` Country string PostalCode string `js:"postalCode"` StateOrProvinceName string `js:"stateOrProvinceName"` LocalityName string `js:"localityName"` StreetAddress string `js:"streetAddress"` OrganizationName string `js:"organizationName"` OrganizationalUnitName []string `js:"organizationalUnitName"` Names []RDN }
Subject is a certificate subject
type X509 ¶
type X509 struct{}
X509 certificate functionality
func (X509) GetAltNames ¶
GetAltNames extracts alt names
func (X509) GetSubject ¶
GetSubject extracts certificate subject
Click to show internal directories.
Click to hide internal directories.