Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

UNABLE_TO_VERIFY_LEAF_SIGNATURE #163

Open
linaresbda opened this issue Oct 29, 2020 · 0 comments
Open

UNABLE_TO_VERIFY_LEAF_SIGNATURE #163

linaresbda opened this issue Oct 29, 2020 · 0 comments

Comments

@linaresbda
Copy link

linaresbda commented Oct 29, 2020

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)"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant