Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyPair ¶
type KeyPair struct { SerialNumber *big.Int SubjectNames []pkix.AttributeTypeAndValue Issuer []pkix.AttributeTypeAndValue PublicKey *rsa.PublicKey HavePrivateKey bool NotValidBefore time.Time NotValidAfter time.Time }
KeyPair is a record of an x509 certificate wrapping a pubkey and a matching private key
func ReadKeyPair ¶
func (KeyPair) SerialOctet ¶
func (KeyPair) SimpleIssuer ¶
func (KeyPair) SimpleSubjectNames ¶
func (KeyPair) ToKeyPairSimple ¶
func (k KeyPair) ToKeyPairSimple(includeRaw bool) (*KeyPairSimple, error)
type KeyPairSimple ¶
type KeyPairSimple struct { Type string `json:"type"` SerialNumber string `json:"serial_number"` SubjectNames map[string]interface{} `json:"subject_names"` HavePrivateKey bool `json:"have_private_key"` NotValidBefore time.Time `json:"not_valid_before"` NotValidAfter time.Time `json:"not_valid_after"` PublicKey string `json:"public_key"` RawKeyPair KeyPair `json:"_raw_key_pair,omitempty"` }
KeyPairSimple is a KeyPair serializable struct meant to aid generating pretty output in JSON
Click to show internal directories.
Click to hide internal directories.