util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKeytoolImage     = "KEYTOOL_IMAGE"
	DefaultKeytoolImage = "eclipse-temurin:17.0.8.1_1-jdk-ubi9-minimal"
	EnvOpenSSLImage     = "OPENSSL_IMAGE"
	DefaultOpenSSLImage = "alpine/openssl:3.1.3"
)

Variables

This section is empty.

Functions

func NewSelfSignedCertPEM

func NewSelfSignedCertPEM(t *testing.T) ([]byte, []byte)

Create a new dummy self signed cert. Returns private key & cert, in PEM format.

func ReadKeystore

func ReadKeystore(ctx context.Context, t *testing.T, keyStore []byte, password string) ([]byte, [][]byte)

ReadKeystore reads a JKS keystore to PEM format. Returns private key, and slice of certificates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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