Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IssuersTemplate = []pkix.Name{ { Country: []string{"BE"}, Organization: []string{"GlobalSign nv-sa"}, CommonName: "GlobalSign ECC OV SSL CA 2018", }, }
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm struct {
SignatureAlgorithm x509.SignatureAlgorithm
PublicKeyAlgorithm x509.PublicKeyAlgorithm
GenerateKey func() (crypto.Signer, error)
}
func GetAlgorithmsByPublicKeyAlgorithm ¶
func GetAlgorithmsByPublicKeyAlgorithm(algo x509.PublicKeyAlgorithm) Algorithm
type Ca ¶
type Ca struct {
Cert *x509.Certificate
PrivateKey crypto.Signer
}
func GenerateCa ¶
func (*Ca) GenerateServerCert ¶
func (c *Ca) GenerateServerCert(hosts ...string) (*ServerCert, error)
type ServerCert ¶
type ServerCert struct {
Ca *Ca
Cert *x509.Certificate
PrivateKey crypto.Signer
}
func (*ServerCert) PrivateKeyBytes ¶
func (c *ServerCert) PrivateKeyBytes() ([]byte, error)
func (*ServerCert) TlsCert ¶
func (s *ServerCert) TlsCert() (tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.