Closed imuni4fun closed 2 years ago
Hello, I am Blathers. I am here to help you get the issue triaged.
It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates.
I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.
If the issue is still current, please, report it again on the community slack.
I have a complete capture here. The content below is also the landing page of that link.
Cert issue setting up CockroachDB
I am having a certificate issue that looks like it may be specific to C#/OpenSSL.
My setup is running on Windows 10 with a WSL2 Ubuntu distro. I am running the database and my test code in Docker Desktop's Kubernetes (current/recent). I chose the Kubernetes CA option for both examples.
I followed the CockroachDB example linked in each README here (Rust) and here (C#).
The Rust example worked fine, including the DB dashboard and adding/removing nodes. The C# example is behaving strangely. Using OpenSSL, I converted the .crt and .key to .pfx for client.maxroach. and it verifies when provided the ca.crt*.
The problem appears when connecting to the server. It connects, starts the cert verifications, calls ProvideClientCertificatesCallback() but does not call UserCertificateValidationCallback(). The error is detailed in the README and indicates that it can't find a file but not which one. I've tried:
I am hoping someone else can chime in on why this example does not work in my containerized, repeatable environment... what's different in the example writer's environment? Also, there are some details that are omitted, like certificate placement relative to code directory or absolute or previous openssl trust steps, if any. I tried a bunch of assumptions but to no avail.
I am currently digging through this file to see if I can start piecing this together. I will turn on tracing soon to gather more data. I am posting this to engage anyone who may have the answer and since this will likely warrant a cautionary edit in the Cockroach C# example.
The error message is:
Jira issue: CRDB-3572