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

🐛 BUG: TLS peer's certificate is not trusted for GlobalSign GCC R3 DV TLS CA 2020 #4081

Closed
kyouheicf opened this issue Oct 1, 2023 · 1 comment
Labels
bug Something that isn't working

Comments

@kyouheicf
Copy link

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What version(s) of the tool(s) are you using?

wrangler 3.10.1

What version of Node are you using?

v19.1.0

What operating system are you using?

macOS

Describe the Bug

SSL certificate verification will fail for this URL https://www.qbhouse.co.jp/search/514

The workaround is use NODE_EXTRA_CA_CERTS=certfile, which is downloaded from https://support.globalsign.com/ca-certificates/intermediate-certificates/domainssl-intermediate-certificates

I hope workerd will include such the certificates by default

Please provide a link to a minimal reproduction

https://gist.github.com/kyouheicf/f302607ee65eabf7a1525ed56efaed23

Please provide any relevant error logs

workerd/jsg/util.c++:275: error: e = kj/compat/tls.c++:221: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate

@kyouheicf kyouheicf added the bug Something that isn't working label Oct 1, 2023
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 1, 2023
@kyouheicf kyouheicf changed the title 🐛 BUG: 🐛 BUG: TLS peer's certificate is not trusted for GlobalSign GCC R3 DV TLS CA 2020 Oct 1, 2023
@lrapoport-cf
Copy link
Contributor

lrapoport-cf commented Jan 10, 2024

hi @kyouheicf , this is more of a feature request for https://github.com/cloudflare/workerd, but my understanding is that it is unlikely that there are plans to support this. we use node's certificate store (https://nodejs.org/api/tls.html#tlsrootcertificates) on windows and the system certificate store otherwise -- if the desired certificate is not available, the workaround is to use the NODE_EXTRA_CA_CERTS environment variable as you've noted. given this, there is not much else we can do here, so i'll go ahead and close the issue.

@github-project-automation github-project-automation bot moved this from Untriaged to Done in workers-sdk Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
Development

No branches or pull requests

2 participants