MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithRSAPrivateKeyFromFile

Function WithRSAPrivateKeyFromFile

util/csjwt/keys.go:175–182  ·  view source on GitHub ↗

WithRSAPrivateKeyFromFile parses PEM encoded PKCS1 or PKCS8 private key found in a file. Provide a password as a second argument when the private key is encrypted. Public key will be derived from the private key.

(pathToFile string, password ...[]byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestKeyParsingFunction · 0.85

Calls 1

WithRSAPrivateKeyFromPEMFunction · 0.85

Tested by 1

TestKeyParsingFunction · 0.68