/etc/ssl/certs/ca-bundle.crt no longer discovered on Linux

Open
#48 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #49 by @autrilla — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, linux, rust
Domain
security

Research direction

Start with commit a0ae1a2a33b91eb19b69ec25c5c448040aaaaf37, which changed the certificate search so that relative names like certs/ca-bundle.crt are no longer tried under candidate directories such as /etc/ssl. Check the closed, unmerged PR #49 to see what was already attempted. Done means /etc/ssl/certs/ca-bundle.crt is discovered again on Linux while ca-certificates.crt still is, which you can verify with a test that lays out a fake /etc/ssl tree.

Written by the indexing model from the issue text.

Description

There seems to be a regression caused by commit a0ae1a2a33b91eb19b69ec25c5c448040aaaaf37 for Linux images that expose the CA bundle at /etc/ssl/certs/ca-bundle.crt. In my case, it's a Docker image built with Nix. Before that commit, openssl-probe would search relative names like certs/ca-bundle.crt under candidate dirs such as /etc/ssl, so it would find /etc/ssl/certs/ca-bundle.crt. After the change, /etc/ssl/certs/ca-certificates.crt would be included, but /etc/ssl/certs/ca-bundle.crt is not. I depend on openssl-probe through native-tls, and upgrading from 0.2.13 to 0.2.18 bumps openssl-probe from 0.1.6 to 0.2.1, resulting in breakage.

Dominant language
Rust
Stars
61
Forks
23
Avg merge
43m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rustls/openssl-probe

All issues in rustls/openssl-probe

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.