certutil

package
v0.0.0-...-28ca6ac Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TLSCAKey constant
	TLSCAKey = "ca.crt"
	// TLSJKSKey constant
	TLSJKSKey = "tls.jks"
	// TLSPasswordKey constant
	TLSPasswordKey = "pass.txt"
	// ClientPropertiesKey constant
	ClientPropertiesKey = "client-ssl.properties"
)

Variables

This section is empty.

Functions

func DecodeCertificate

func DecodeCertificate(raw []byte) (cert *x509.Certificate, err error)

DecodeCertificate decodes pem certs to golang x509.Certificate

func DecodeKey

func DecodeKey(raw []byte) (parsedKey []byte, err error)

DecodeKey decodes pem key to []byte

func GeneratePass

func GeneratePass(length int) (passw []byte)

GeneratePass generates a password for keys, certs

func InjectJKS

func InjectJKS(reqLogger logr.Logger, secret *corev1.Secret) (injected *corev1.Secret, err error)

InjectJKS injects JKS to kubernetes secrets

Types

This section is empty.

Jump to

Keyboard shortcuts

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