jwtk / njwt

Node.js JWT support
Apache License 2.0
431 stars 49 forks source link

TLS issue #66

Closed jayheavner closed 4 years ago

jayheavner commented 5 years ago

Disregard this. My admin pulled the root cert and not the full chain.

I'm getting the following error: "Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1049:34) at TLSSocket.emit (events.js:182:13) at TLSSocket._finishInit (_tls_wrap.js:631:8)"

I'm assuming this is error is thrown while calling my issuer to get my keys. I have a custom domain with CNAME pointing to my actual issuer. Both my custom domain and actual issuer have proper certs installed on the servers. I should mentioned that my custom domain is a wildcard cert.

If I issue a token using the actual domain of the issuer and not the custom domain then it works just fine.