cryptography

package
v0.0.0-...-aeaf823 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivateKey

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

GeneratePrivateKey will a pem encoded private key and an rsa private key object

func GeneratePublicKey

func GeneratePublicKey(privateKey *rsa.PrivateKey) ([]byte, error)

GeneratePublicKey will create a pem encoded cert

func TestCertValidity

func TestCertValidity(pemFile string) error

TestCertValidity will check if the cert defined in the conf is not past its not after date

Types

This section is empty.

Jump to

Keyboard shortcuts

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