Skip to content

[Bug] Client connect with TLS does not work anymore #1113

@BehnazMoradabadi

Description

@BehnazMoradabadi

What are you really trying to do?

Client connect with TLS does not work anymore after the new release.

Describe the bug

import asyncio
from temporalio.client import Client, TLSConfig

client = await Client.connect(
    "xxx",
    namespace="xxx",
    tls=TLSConfig(
        client_cert=open("tls.crt", "rb").read(),
        client_private_key=open("tls.key", "rb").read(),
        server_root_ca_cert=open("ca.crt", "rb").read(),
    ),
)
print(client)

Used to work but now it raises error:

Failed client connect: Server connection error: tonic::transport::Error(Transport, ConnectError(Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) }))

Environment/Versions

  • OS and processor: [e.g. M1 Mac, x86 Windows, Linux]
  • Temporal Version: [e.g. 1.14.0?] and/or SDK version
  • Are you using Docker or Kubernetes or building Temporal from source?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions