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