utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CreateCAPool

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

func GenerateCSR

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

func ParseKeycloakPublicKey

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

func VerifyPeerCertificate

func VerifyPeerCertificate(certClient *x509.Certificate, certCA *x509.Certificate) ([][]*x509.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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