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.
Click to show internal directories.
Click to hide internal directories.