I have an environment with a root CA and a subordinate CA. my environment is mixed. I have both windows and Linux (Ubuntu 18) servers.
On the windows machines it is enough to add the root CA to the trusted root certificates store, and from there on all certificate issued by the -subordinate- CA are trusted by the computer.
On the Ubuntu machines I installed the Root CA to the trusted root CA's store as well, but I found that when running docker pull
from a private registry with a certificate issued by the subordinate CA, I got the error: Error response from daemon: Get https://<server>:5000/v2/: x509: certificate signed by unknown authority
only after spending a good few hours I realized I needed to install the subordinate CA as well as the root CA.
Why is that? shouldn't a subordinate signed certificate be trusted if the subordinate root CA is trusted?