Versions in this module Expand all Collapse all v0 v0.0.2 Feb 8, 2023 v0.0.1 Feb 8, 2023 Changes in this version + const EcdsaKeySize256 + const EcdsaSigAlg + const RsaKeySize2048 + const RsaSigAlg + func GenCSR(key []byte, options CertOptions) ([]byte, error) + func GenCustomExtendCSR(pemKey []byte, id *spiffe.IDGIdentity, opts *CertOptions, ...) ([]byte, error) + func GenExtendWorkloadCSR(key []byte, id *spiffe.IDGIdentity, csrConf CSRConf) ([]byte, error) + func GenKey(sigAlg SupportedSignatureAlgorithms) (priv interface{}, key []byte, err error) + func GenWorkloadCSR(key []byte, id *spiffe.IDGIdentity) ([]byte, error) + func GetLocalIPs() []string + type CSRConf struct + IPAddresses []string + SNIHostnames []string + type CertOptions struct + CN string + Host string + IsCA bool + NotBefore time.Time + Org string + SigAlg SupportedSignatureAlgorithms + SignerCert *x509.Certificate + SignerPriv crypto.PrivateKey + SignerPrivPem []byte + TTL time.Duration + type KeySize int + type SupportedSignatureAlgorithms string