Versions in this module Expand all Collapse all v1 v1.0.8 Mar 14, 2024 v1.0.7 Feb 8, 2024 Changes in this version + func GenerateCertificate(nfType, nfId, certPemPath string, pubKey *rsa.PublicKey, ...) (*x509.Certificate, error) + func GenerateClientCredentialAssertion(sub, aud, keyPath string) (string, error) + func GenerateRSAKeyPair(pubPemPath, privPemPath string) (*rsa.PrivateKey, error) + func GenerateRootCertificate(rootCertPath string, rootPrivKey *rsa.PrivateKey) (*x509.Certificate, error) + func GetNFCertFileName(nfType, nfId string) string + func GetNFCertPath(base, nfType, nfId string) string + func GetTokenCtx(nfType, targetNF models.NfType, nfId, nrfUri, scope string) (context.Context, *models.ProblemDetails, error) + func ParseCertFromPEM(certPemPath string) (*x509.Certificate, error) + func ParsePrivateKeyFromPEM(privPemPath string) (*rsa.PrivateKey, error) + func ParsePublicKeyFromPEM(pubPemPath string) (*rsa.PublicKey, error) + func VerifyOAuth(authorization, serviceName, certPath string) error + type CCAClaims struct + Exp int32 + Iat int32