Documentation ¶
Index ¶
- type CA
- func (ca *CA) CreateCA() error
- func (ca *CA) CreateCertificateFromRequest(wr io.Writer, c string, r models.Request) error
- func (ca *CA) CreateClientCertificate(uuid string) ([]byte, error)
- func (ca *CA) CreateServerCertificate(name string) error
- func (ca *CA) ExportToDisk(name string, certBytes []byte, privateKey *rsa.PrivateKey) error
- func (ca *CA) GetCertificates() []store.Certificate
- func (ca *CA) GetNextSerial() *big.Int
- func (ca *CA) GetServerCertificate(helo *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (ca *CA) GetUserCertificate(uuid string) ([]byte, error)
- func (ca *CA) Load(name string) error
- func (ca *CA) LoadOrCreate(name string) error
- func (ca *CA) SetStore(s *store.Store)
- func (ca *CA) WaitForApproval(s pkix.Name, c string, r models.Request) chan bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct { X509 map[string]*x509.Certificate TLS map[string]*tls.Certificate CAX509 *x509.Certificate CATLS *tls.Certificate Store *store.Store sync.Mutex }
func LoadOrCreate ¶
func (*CA) CreateCertificateFromRequest ¶
func (*CA) CreateClientCertificate ¶
func (*CA) CreateServerCertificate ¶
func (*CA) ExportToDisk ¶
func (*CA) GetCertificates ¶
func (ca *CA) GetCertificates() []store.Certificate
func (*CA) GetNextSerial ¶
func (*CA) GetServerCertificate ¶
func (ca *CA) GetServerCertificate(helo *tls.ClientHelloInfo) (*tls.Certificate, error)
Dynamic TLS server config.
func (*CA) LoadOrCreate ¶
Click to show internal directories.
Click to hide internal directories.