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