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