cert

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificateRequest

func GenerateCertificateRequest(keySize int, commonName string, organization []string) ([]byte, []byte, error)

GenerateCertificateRequest generate certificate request for given commonName and organization. keySize is the size of the private key. CertificateRequest and PrivateKey pem data are returned

func GenerateDefaultSelfSignedCertificateLocally

func GenerateDefaultSelfSignedCertificateLocally() (string, string, error)

GenerateDefaultSelfSignedCertificateLocally generate self-signed certificate in local directory and return the path for generated certificate and key

func GenerateSelfSignedCertificate

func GenerateSelfSignedCertificate(keySize int, ca *x509.Certificate) ([]byte, []byte, error)

GenerateSelfSignedCertificate generate self-signed certificate keySize is the size of the private key, ca is the certificate for issuing Certificate and PrivateKey pem data are returned

func NewCA

func NewCA(commonName string, organization []string) *x509.Certificate

NewCA create a ca certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL