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