Documentation ¶
Index ¶
- func GenerateIntermediate(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
- func GenerateTrustCA(pub crypto.PublicKey, priv crypto.PrivateKey) (*x509.Certificate, error)
- func GenerateTrustCert(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIntermediate ¶
func GenerateIntermediate(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
GenerateIntermediate generates an intermediate certificate for testing using the parent certificate (likely a CA) and the provided keys.
func GenerateTrustCA ¶
func GenerateTrustCA(pub crypto.PublicKey, priv crypto.PrivateKey) (*x509.Certificate, error)
GenerateTrustCA generates a new certificate authority for testing.
func GenerateTrustCert ¶
func GenerateTrustCert(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
GenerateTrustCert generates a new trust certificate for testing. Unlike the intermediate certificates, this certificate should be used for signature only, not creating certificates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.