svid

package
v0.0.0-...-70b8fbd Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package svid provides functions to generate and sign SVID. for more info related to SVID refer to:

https://github.com/spiffe/spiffe/blob/main/standards/X509-SVID.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSVID

func GenSVID(commonName string, spiffeID string, expireInDays int, signingCert *x509.Certificate, signingKey any, keyAlgo x509.PublicKeyAlgorithm) (*tls.Certificate, error)

GenSVID generates a SVID certificate for user and signs it based on given signing cert/key and public key algorithm

func LoadKeyPair

func LoadKeyPair(keyPath, certPath string) (any, *x509.Certificate, error)

LoadKeyPair loads a pair of RSA/ECDSA private key and certificate from pem files

Types

This section is empty.

Jump to

Keyboard shortcuts

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