certificate

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificateSigningRequest

func CreateCertificateSigningRequest(info x509.CertificateRequest, pk interface{}) ([]byte, error)

CreateCertificateSigningRequest creates a certificate request

func GeneratePrivateKey

func GeneratePrivateKey(keySize int) (*pem.Block, error)

GeneratePrivateKey creates the rsa private key

func ParsePrivateKey

func ParsePrivateKey(der []byte) (*rsa.PrivateKey, error)

ParsePrivateKey parse the rsa private key

func PublicKeyAlgorithm

func PublicKeyAlgorithm(algorithm string) x509.PublicKeyAlgorithm

PublicKeyAlgorithm returns the x509 public key algorithm

func SignatureAlgorithm

func SignatureAlgorithm(algorithm string) x509.SignatureAlgorithm

SignatureAlgorithm returns the x509 signature algorithm

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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