This repository was archived by the owner on Jan 20, 2024. It is now read-only.
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
UNABLE_TO_VERIFY_LEAF_SIGNATURE #163
Open
Description
Hi all, i have an application nodejs and i have working in authentication whit a remote server Oauth2, this is the function to get a Toke type Bearer, but i dont know how to set a certified.
getToken() {
let auth = new ClientOAuth2({
clientId: 'client',
clientSecret: 'secret',
accessTokenUri: 'https://server.com/oauth/token',
scopes: ['write', 'read']
})
return auth .credentials.getToken();
}
Result:
code:"UNABLE_TO_VERIFY_LEAF_SIGNATURE"
message:"unable to verify the first certificate"
stack:"Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.EventEmitter.emit (domain.js:448:20)
at TLSSocket._finishInit (_tls_wrap.js:636:8)"
Metadata
Metadata
Assignees
Labels
No labels