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] Intermediate certificates sample does not work on MacOS #98

Closed
bergundy opened this issue May 18, 2021 · 2 comments
Closed

[Bug] Intermediate certificates sample does not work on MacOS #98

bergundy opened this issue May 18, 2021 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@bergundy
Copy link
Member

Describe the bug
When trying to connect the Worker to a server using the tls-full sample, connection fails with [TransportError: transport error: error trying to connect: invalid certificate: UnknownIssuer]

To Reproduce
Steps to reproduce the behavior:

  1. Follow the mTLS tutorial but use tls-full instead of simple
  2. Run the Worker
TEMPORAL_ADDRESS=localhost \
TEMPORAL_NAMESPACE=accounting \
TEMPORAL_CLIENT_CERT_PATH=certs/client/accounting/client-accounting-namespace-chain.pem \
TEMPORAL_CLIENT_KEY_PATH=certs/client/accounting/client-accounting-namespace.key \
TEMPORAL_SERVER_NAME_OVERRIDE=accounting.cluster-x.contoso.com \
TEMPORAL_SERVER_ROOT_CA_CERT_PATH=certs/cluster/ca/server-intermediate-ca.pem \
npm start

Expected behavior
Worker should connect to server

Versions (please complete the following information where relevant):

  • OS: Mac
  • Temporal Version: temporalio/auto-setup@sha256:004f4440664f13c3b049eaad5c019c9f780082d8752655d01ef91e322b482097

Additional context
Tried using different certificates without success, seems like this is a MacOS issue, @Sushisource got it working on Linux.

@bergundy bergundy added bug Something isn't working good first issue Good for newcomers labels May 18, 2021
@liammurray
Copy link

liammurray commented Dec 19, 2021

I believe I am running into this, although I only see "[TransportError: transport error]". I can connect with tctl but not from my typescript SDK worker using the same certificates and client key. I also get the same error when I run the worker in a docker container (local and on a Linux node).

@liammurray
Copy link

liammurray commented Dec 20, 2021

I got it to work with just a root CA (no intermediate) by adding -sha256 to the openssl commands generating the certs (it was defaulting to sha1, possibly due to something else I had going on). Once that was fixed I switched back to an end entity cert signed with an intermediate CA and I started getting "Failed to connect before the deadline" (due to "unable to get issuer certificate" as observed in grpc-js logs). I believe that is this issue: grpc/grpc-node#1784.

@bergundy bergundy closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants