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