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