Documentation ¶
Index ¶
Constants ¶
View Source
const NoCertsError = internalError("no root certificates found")
Variables ¶
This section is empty.
Functions ¶
func CreateRootCAFiles ¶
func EncodeCertificate ¶
func EncodePrivateKey ¶
func EncodePublicKey ¶
Types ¶
type CertConfig ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateNamedCert ¶
func (m *Manager) CreateNamedCert(cfg CertConfig) (*x509.Certificate, crypto.Signer, []byte, error)
CreateNamedCert will return raw TLS certificate, Private key and Public key bytes
func (*Manager) MarshalPrivateKey ¶
func (m *Manager) MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error)
func (*Manager) RootCrt ¶
func (m *Manager) RootCrt() *x509.Certificate
Click to show internal directories.
Click to hide internal directories.