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