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