Documentation ¶
Index ¶
- func TlsLeaf(cert *tls.Certificate) *x509.Certificate
- type CertGen
- func LoadCertGen(certBytes, keyBytes []byte) (*CertGen, error)
- func MakeCaTls(name pkix.Name, serialNumber *big.Int) (*CertGen, error)
- func MakeClientTls(ca *CertGen, name pkix.Name, serialNumber *big.Int) (*CertGen, error)
- func MakeServerTls(ca *CertGen, name pkix.Name, serialNumber *big.Int, dnsNames []string, ...) (*CertGen, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TlsLeaf ¶
func TlsLeaf(cert *tls.Certificate) *x509.Certificate
Types ¶
type CertGen ¶
type CertGen struct {
// contains filtered or unexported fields
}
func LoadCertGen ¶
func MakeClientTls ¶
func MakeServerTls ¶
func (*CertGen) GetCertPem ¶
func (*CertGen) GetTlsLeaf ¶
func (ca *CertGen) GetTlsLeaf() tls.Certificate
Click to show internal directories.
Click to hide internal directories.