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