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