Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCA ¶
func NewRootCA(cn string, validityPeriod time.Duration, country, locality, organization string) (*certificate.Certificate, error)
Types ¶
type ArchonManager ¶
type ArchonManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(ca *certificate.Certificate) (*ArchonManager, error)
func (*ArchonManager) GetCertificate ¶
func (m *ArchonManager) GetCertificate(cn string) (*certificate.Certificate, error)
func (*ArchonManager) GetRootCertificate ¶
func (m *ArchonManager) GetRootCertificate() (*certificate.Certificate, error)
func (*ArchonManager) IssueCertificate ¶
func (m *ArchonManager) IssueCertificate(cn string, validityPeriod time.Duration, dnsNames []string) (*certificate.Certificate, error)
Click to show internal directories.
Click to hide internal directories.