Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GenerateCertificate( nfType, nfId, certPemPath string, pubKey *rsa.PublicKey, rootCert *x509.Certificate, rootPrivKey *rsa.PrivateKey, ) (*x509.Certificate, error)
func GenerateRSAKeyPair ¶
func GenerateRSAKeyPair(pubPemPath, privPemPath string) (*rsa.PrivateKey, error)
func GenerateRootCertificate ¶
func GenerateRootCertificate( rootCertPath string, rootPrivKey *rsa.PrivateKey, ) (*x509.Certificate, error)
func GetNFCertFileName ¶
func GetNFCertPath ¶
func GetTokenCtx ¶
func ParseCertFromPEM ¶
func ParseCertFromPEM(certPemPath string) (*x509.Certificate, error)
func ParsePrivateKeyFromPEM ¶
func ParsePrivateKeyFromPEM(privPemPath string) (*rsa.PrivateKey, error)
func VerifyOAuth ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.