Documentation
¶
Index ¶
- type Manager
- func (c *Manager) CommonName() string
- func (c *Manager) GenerateCSR(deviceID string) ([]byte, []byte, error)
- func (c *Manager) GetCertificates() (*x509.CertPool, *x509.Certificate, crypto.PrivateKey)
- func (c *Manager) SetCertificate(cert, privateKey []byte) error
- func (c *Manager) Signature() []byte
- func (c *Manager) WriteCertificate(certPath, keyPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CommonName ¶
func (*Manager) GenerateCSR ¶
func (*Manager) GetCertificates ¶
func (c *Manager) GetCertificates() (*x509.CertPool, *x509.Certificate, crypto.PrivateKey)
GetCertificates returns the CA certificate, client certificate and private key.
func (*Manager) SetCertificate ¶
Certificates set a new certificate and a private key.
func (*Manager) WriteCertificate ¶
Click to show internal directories.
Click to hide internal directories.