certificate

package
v0.0.0-...-3f9ec74 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestPK

func GenerateTestPK() []byte

func GetCertificateFromStore

func GetCertificateFromStore(key string) (interface{}, error)

func InstanceStoreCertificatesFromAzureBlob

func InstanceStoreCertificatesFromAzureBlob(certificatesName ...string) error

func InstanceStoreCertificatesFromAzureVault

func InstanceStoreCertificatesFromAzureVault(vaultName string, certificatesName ...string) (err error)

func InstanceStoreCertificatesFromFileServer

func InstanceStoreCertificatesFromFileServer(certificatesName ...string) (err error)

func LoadMockCertificates

func LoadMockCertificates()

func SetCertificateOnStore

func SetCertificateOnStore(key string, value interface{})

Types

type ICPCertificate

type ICPCertificate struct {
	Name          string
	RsaPrivateKey interface{}
	Certificate   *x509.Certificate
}

func GetICPCertificate

func GetICPCertificate(name string, pfxBytes []byte, pass string) (ICPCertificate, error)

type SSLCertificate

type SSLCertificate struct {
	Name    string
	PemData []byte
}

func GetSSLCertificate

func GetSSLCertificate(name string, pfxBytes []byte, pass string) (SSLCertificate, error)

type TLSCertificate

type TLSCertificate struct {
	Crt string
	Key string
}

Jump to

Keyboard shortcuts

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