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