ca

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRawPubkey

func ExtractRawPubkey(pkt *pktoken.PKToken) (interface{}, error)

Types

type Ca

type Ca struct {
	Alg jwa.KeyAlgorithm
	// CaCertBytes []byte
	RootCertPem []byte
	// contains filtered or unexported fields
}

func New

func New(op client.OpenIdProvider) (*Ca, error)

func (*Ca) CheckPKToken

func (a *Ca) CheckPKToken(pktJson []byte) (*pktoken.PKToken, error)

func (*Ca) KeyGen

func (a *Ca) KeyGen(alg string) error

func (*Ca) PktToSignedX509

func (a *Ca) PktToSignedX509(pktJson []byte) ([]byte, error)

func (*Ca) VerifyPktCert

func (a *Ca) VerifyPktCert(issuedCertPEM []byte) error

VerifyPktCert checks that the X509 cert is signed by the CA and that the PK Token in the cert matches the public key in the cert.

Jump to

Keyboard shortcuts

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