certificate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePFX

func EncodePFX(private interface{}, certificate []byte, intermediates []byte) ([]byte, string, error)

Generates DER Encoded PFX file using passed in private keys and certificates

func GenerateCSR

func GenerateCSR(sans []string, bits int) ([]byte, error)

Generate creates a CSR

func GenerateCSRWithPrivateKey

func GenerateCSRWithPrivateKey(sans []string, private *rsa.PrivateKey) ([]byte, error)

Generate creates a CSR with existing rsa key pair

func InsertKeyCSR

func InsertKeyCSR(csr []byte, private *rsa.PrivateKey) ([]byte, error)

Generates CSR after parsing certificate request and then embeding public key within request <cr> must be DER Encoded

func Sign

func Sign(csr []byte, private *rsa.PrivateKey, serial int64, duration time.Duration) ([]byte, error)

TODO - add issuer information Sign takes a CSR, private key, serial number, and TTL duration; produces a signed x.509 certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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