Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type X509Pair ¶
type X509Pair struct { KeyPemBytes []byte // pem encoded rsa.PrivateKey bytes CertPemBytes []byte // pem encoded x509.Certificate bytes CN string // common name Serial *big.Int // serial number }
X509Pair represent pair cert and key
func NewX509Pair ¶
NewX509Pair create new X509Pair object
func (*X509Pair) Decode ¶
func (pair *X509Pair) Decode() (key *rsa.PrivateKey, cert *x509.Certificate, err error)
Decode pem bytes to rsa.PrivateKey and x509.Certificate
Click to show internal directories.
Click to hide internal directories.