cert

package
v0.0.0-...-84fc3e2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateX509Cert

func CreateX509Cert(pkToken *pktoken.PKToken, signer crypto.Signer) ([]byte, error)

CreateX509Cert generates a self-signed x509 cert from a PK token

  • OP 'sub' claim is mapped to the CN and SANs fields
  • User public key is mapped to the RawSubjectPublicKeyInfo field
  • Raw PK token is mapped to the SubjectKeyId field

func PktToX509Template

func PktToX509Template(pkt *pktoken.PKToken) (*x509.Certificate, error)

PktToX509Template takes a PK Token and returns a X.509 certificate template with the fields of the template set to the values in the X509

Types

This section is empty.

Jump to

Keyboard shortcuts

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