utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertPEMBlockType = "CERTIFICATE"
	KeyPEMBlockType  = "RSA PRIVATE KEY"
)
View Source
const (
	PublicKeyHeader = "-----BEGIN PUBLIC KEY-----"
	PublicKeyFooter = "-----END PUBLIC KEY-----"
)
View Source
const (
	LamassuLoggerContextKey contextKey = "LamassuLogger"
)

Variables

This section is empty.

Functions

func CheckPEMBlock

func CheckPEMBlock(pemBlock *pem.Block, blockType string) error

func CreateCAPool

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

func DecodeB64

func DecodeB64(message string) (string, error)

func EncodeB64

func EncodeB64(src []byte) []byte

func GenerateCSR

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

func InsertNth

func InsertNth(s string, n int) string

func ParseKeycloakPublicKey

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

func ToHexInt

func ToHexInt(n *big.Int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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