helper

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificate

func GenerateCertificate(t *testing.T, caKeyPem, caCertificatePem, keyPem, commonName string) string

GenerateCertificate generates a local CA x509 certificate PEM string.

func GeneratePrivateKey

func GeneratePrivateKey(t *testing.T, bits int) string

GeneratePrivateKey generates a RSA private key PEM string.

func GenerateSelfSignedCertificateAuthority

func GenerateSelfSignedCertificateAuthority(t *testing.T, keyPem string) string

GenerateSelfSignedCertificateAuthority generates a x509 CA certificate PEM string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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