Skip to content

use /etc/pki/ca-trust/source/anchors as cert_dir on modern RHEL? #24

Closed as not planned

Description

@aaronenberg

I noticed that cert_dir always gets certs joined onto it. However, /etc/pki/ca-trust/extracted is a dynamically created directory generated by the update-ca-trust script and the pem subdirectory is just one of the many created by this script that stores PEM bundles. None of them have a certs subdirectory AFAIA.

I think the probe will find the legacy /etc/pki/tls/certs right after and sets cert_dir to that.

Can this directory and possibly others like it be separated from the directories that do have a certs subdirectory?

Activity

  1. changed the title [-]/etc/pki/ca-trust/extracted/pem does not have a "certs" subdirectory[/-] [+]/etc/pki/ca-trust/extracted/pem does not have a certs/ subdirectory[/+] on Mar 8, 2023
  2. aaronenberg commented on Mar 8, 2023

    @aaronenberg
    Author

    To add onto this, the appropriate cert_dir replacement on these modern RHEL systems I believe is
    /etc/pki/ca-trust/source/anchors for "simple trust anchors". This would be yet another list of cert_dirs that do not have a certs subdirectory but unlike /etc/pki/ca-trust/extracted it is an actual cert_dir

  3. changed the title [-]/etc/pki/ca-trust/extracted/pem does not have a certs/ subdirectory[/-] [+]use /etc/pki/ca-trust/source/anchors as cert_dir on modern RHEL?[/+] on Mar 8, 2023
  4. michael-o commented on Feb 22, 2025

    @michael-o

    The only reasonable approach is to point to the dir/file the script is generating and not any source which is being used. This will always result in an incomplete truststore.

  5. djc commented on Nov 27, 2025

    @djc
    Member

    Hi, the rustls team recently took over maintenance of this crate and I'm working on changes to the probing algorithm in #41. This should address some of the suggestions in the OP but it does not yet /etc/pki/ca-trust/source/anchors. Do you have some kind of reference documentation for this?

  6. djc commented on Dec 29, 2025

    @djc
    Member

    Going to close this for lack of feedback. Feel free to reopen if you want to pick it up again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions