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