crypto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MPL-2.0 Imports: 5 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 ParseKeycloakPublicKey

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

Types

type CRT

type CRT struct {
	Status         string `json:"status"`
	ExpirationDate string `json:"expirationDate"`
	RevocationDate string `json:"revocationDate"`
	Serial         string `json:"serial"`
	DN             string `json:"dn"`
	CRTPath        string `json:"crtpath"`
	Key            string `json:"key"`
	KeySize        int    `json:"keySize"`
}

type CRTs

type CRTs struct {
	CRTs []CRT `json:""`
}

Jump to

Keyboard shortcuts

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