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