Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { // Certificate in ASN.1 DER format Certificate []byte // Private key in ASN.1 DER format PrivateKey []byte }
func Generate ¶
func Generate(parent *Certificate, opts ...Option) (*Certificate, error)
func MustGenerate ¶
func MustGenerate(parent *Certificate, opts ...Option) *Certificate
func ParseCertificate ¶
func ParseCertificate(certPEM []byte, keyPEM []byte) (*Certificate, error)
func (*Certificate) ToPEM ¶
func (c *Certificate) ToPEM() ([]byte, []byte)
type Option ¶
type Option func(*x509.Certificate)
func CommonName ¶
func IPAddresses ¶ added in v5.21.0
func Organization ¶
Click to show internal directories.
Click to hide internal directories.