0106cf
% containers-certs.d 5 Directory for storing custom container-registry TLS configurations
fa61e0
fa61e0
# NAME
fa61e0
containers-certs.d - Directory for storing custom container-registry TLS configurations
fa61e0
fa61e0
# DESCRIPTION
fa61e0
A custom TLS configuration for a container registry can be configured by creating a directory under `$HOME/.config/containers/certs.d` or `/etc/containers/certs.d`.
fa61e0
The name of the directory must correspond to the `host:port` of the registry (e.g., `my-registry.com:5000`).
fa61e0
fa61e0
## Directory Structure
fa61e0
A certs directory can contain one or more files with the following extensions:
fa61e0
fa61e0
* `*.crt`  files with this extensions will be interpreted as CA certificates
fa61e0
* `*.cert` files with this extensions will be interpreted as client certificates
fa61e0
* `*.key`  files with this extensions will be interpreted as client keys
fa61e0
fa61e0
Note that the client certificate-key pair will be selected by the file name (e.g., `client.{cert,key}`).
fa61e0
An exemplary setup for a registry running at `my-registry.com:5000` may look as follows:
fa61e0
```
fa61e0
/etc/containers/certs.d/    <- Certificate directory
fa61e0
└── my-registry.com:5000    <- Hostname:port
fa61e0
   ├── client.cert          <- Client certificate
fa61e0
   ├── client.key           <- Client key
fa61e0
   └── ca.crt               <- Certificate authority that signed the registry certificate
fa61e0
```
fa61e0
fa61e0
# HISTORY
fa61e0
Feb 2019, Originally compiled by Valentin Rothberg <rothberg@redhat.com>