Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ValidateCACertificate ¶
func ValidateCACertificate(cert *x509.Certificate, key crypto.PublicKey) error
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA type representation for a self-signed certificate authority
func NewCA ¶
NewCA creates a new CA object for given CA certificate and private key. If both of caCert and key are nil, generates a new private key and a self-signed certificate
func (*CA) Certificate ¶
func (ca *CA) Certificate() *x509.Certificate
Certificate returns root ca certificate used
func (*CA) EncodedCertificate ¶
EncodedCertificate returns encoded root ca certificate used
func (*CA) EncodedKey ¶
EncodedKey returns encoded private key used
func (*CA) PrivateKey ¶
PrivateKey returns private key used
Click to show internal directories.
Click to hide internal directories.