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