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