I have cloned this repo (https://github.com/docusign/code-examples-node) and believe I have entered all required keys and codes. But, when I try to authenticate with JWT I get this error:
at Sign.sign (internal/crypto/sig.js:105:29)
at Object.sign (C:UsersBrownJ3Documents
eposcode-examples-node
ode_modulesjwaindex.js:152:45)
at Object.jwsSign [as sign] (C:UsersBrownJ3Documents
eposcode-examples-node
ode_modulesjwslibsign-stream.js:32:24)
at Object.module.exports [as sign] (C:UsersBrownJ3Documents
eposcode-examples-node
ode_modulesdocusign-esign
ode_modulesjsonwebtokensign.js:189:16)
at generateAndSignJWTAssertion (C:UsersBrownJ3Documents
eposcode-examples-node
ode_modulesdocusign-esignsrcApiClient.js:62:16)
at exports.requestJWTUserToken (C:UsersBrownJ3Documents
eposcode-examples-node
ode_modulesdocusign-esignsrcApiClient.js:890:19)
at _DsJwtAuth._getToken [as getToken] (C:UsersBrownJ3Documents
eposcode-examples-nodelibDSJwtAuth.js:85:33)
at log (C:UsersBrownJ3Documents
eposcode-examples-nodelibDSJwtAuth.js:174:33)
at _DsJwtAuth.DsJwtAuth.login (C:UsersBrownJ3Documents
eposcode-examples-nodelibDSJwtAuth.js:184:5)
at commonControllers.login (C:UsersBrownJ3Documents
eposcode-examples-nodelibcommonControllers.js:36:16) {
library: 'PEM routines',
function: 'get_name',
reason: 'no start line',
code: 'ERR_OSSL_PEM_NO_START_LINE```
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…