vmware / vmware/photon

Adding private root cert to Photon VM

Open
#1,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello,

We are trying to add our private CA cert bundle to the server but getting the below error. I have added cert to /etc/ssl/certs and executed rehash_ca_certificates.sh

rehash_ca_certificates.sh
rehash: warning: skipping CA-Bundle.pem,it does not contain exactly one certificate or CRL

I have tried separating the certs in the bundle and adding them individually, when I ran rehash it dint through any warnings but when I try docker login to our private repo getting the below error.

Error response from daemon: Get "https://artifactory.org/v2/": x509: certificate signed by unknown authority

If I curl the url it works without issue, only docker login is failing. For now, I'm using insecure-registry flag.

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 with /etc/ssl/certs and rehash_ca_certificates.sh, then compare the trust store used by curl with the one used by docker login. Reproduce the private-registry login failure and determine what Photon VM configuration is missing; done means docker login trusts the private CA without insecure-registry.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.