Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS error for self-signed certificates #24

Open
oproulx opened this issue Mar 20, 2024 · 0 comments
Open

TLS error for self-signed certificates #24

oproulx opened this issue Mar 20, 2024 · 0 comments

Comments

@oproulx
Copy link
Contributor

oproulx commented Mar 20, 2024

Started getting the following error:

Error: self-signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1535:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket.emit (node:domain:489:12)
    at TLSSocket._finishInit (node:_tls_wrap:949:8)
    at ssl.onhandshakedone (node:_tls_wrap:733:12)

Looks like this is due to gmail having self-signed certificates.
The following fix solves the issue:

tls: {
      minVersion: 'TLSv1',
      rejectUnauthorized: false // This is required since google self-signs their cert
    }

However, it could be good for the module to have the tls settings configurable.

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

No branches or pull requests

1 participant