vmware / vmware/photon

Updates to ca-certificates-pki resets ca bundle

Open
#1,307 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Versions:
Photon OS 3.0
ca-certificates-pki-20190521-2.ph3.x86_64

Linux certificate bundle /etc/pki/tls/certs/ca-bundle.crt is updated with a self signed CA using rehash_ca_certificates. An update to package ca-certificates-pki resets the bundle to original value.

Reproduction steps
1. Add custom ca to /etc/ssl/certs 
2. Run rehash_ca_certificates to update the bundle
3. Update/reinstall ca-certificates-pki-20190521-2.ph3.x86_64
   `tdnf reinstall ca-certificates-pki-20190521-2.ph3.x86_64`
Expected behavior

Certificate bundle should persist custom certificate

Additional context

No response

Contributor guide

Open the contributing guide

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.

Research direction

Start by inspecting the ca-certificates-pki update or reinstall handling around /etc/pki/tls/certs/ca-bundle.crt, /etc/ssl/certs, and the rehash_ca_certificates entry point. Reproduce the issue with the listed tdnf reinstall command and verify that a custom certificate remains in the bundle after the package operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.