utils

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeyHeader = "-----BEGIN PUBLIC KEY-----"
	PublicKeyFooter = "-----END PUBLIC KEY-----"
)
View Source
const (
	LamassuLoggerContextKey contextKey = "LamassuLogger"
)

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(src []byte) []byte

func CreateCAPool

func CreateCAPool(CAPath string) (*x509.CertPool, error)

func DecodeB64

func DecodeB64(message string) (string, error)

func EcodeB64

func EcodeB64(message string) string

func GenerateCSR

func GenerateCSR(csr *x509.CertificateRequest, key interface{}) (*x509.CertificateRequest, error)

func ParseKeycloakPublicKey

func ParseKeycloakPublicKey(data []byte) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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