]> go.fuhry.dev Git - runtime.git/commit
[mtls] auto-discover root cert from system trust store
authorDan Fuhry <dan@fuhry.com>
Wed, 28 Oct 2026 03:49:41 +0000 (23:49 -0400)
committerDan Fuhry <dan@fuhry.com>
Wed, 28 Oct 2026 03:49:41 +0000 (23:49 -0400)
commitb63f9f8d7d187565db3b8d51aa0d9e358edabbae
tree844724c78ad05a25efda916af32c0800c86f8edc
parent1365f6519bad28177d39052f5eb1a0644ffcd7b1
[mtls] auto-discover root cert from system trust store

- replace hardcoded root cert path with openssl hash based lookup
- add code to mimic openssl's hashing of pkix names

Prompt:

> Give me a Golang version of x509_name_canon, accepting a pkix.Name as a parameter and returning a byte array containing the canonical encoding.
>
> [uploaded file: x509_cmp.c]

Co-Authored-By: Gemini Pro 3 <noreply@gemini.google>
mtls/certutil/BUILD.bazel
mtls/certutil/certutil.go
mtls/certutil/certutil_test.go [new file with mode: 0644]
mtls/certutil/find_root.go [new file with mode: 0644]
mtls/certutil/name_canon.go [new file with mode: 0644]
mtls/provider_file.go