 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCertPEM ¶
func EncodeCertPEM(cert *x509.Certificate) []byte
EncodeCertPEM embed a certificate in a PEM block
Types ¶
type CA ¶
type CA interface {
	PrivateKey() SignerWithPEM
	Cert() *x509.Certificate
	NewSignedCert(cfg certutil.Config, publicKey crypto.PublicKey) (*x509.Certificate, error)
}
    CA is a certificate authority usable to generated signed certificates
type SignerWithPEM ¶
SignerWithPEM is a signer implementation that has its PEM encoded representation attached
func NewRSASigner ¶
func NewRSASigner() (SignerWithPEM, error)
NewRSASigner generates a private key suitable for a TLS cert (client or server)
 Click to show internal directories. 
   Click to hide internal directories.