Skip to content

Commit c4c5e00

Browse files
authored
Merge pull request #369 from mtrmac/certs-port
Be more explicit about the port part of a certificate directory
2 parents c4983f3 + b6f27e8 commit c4c5e00

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

image/docs/containers-certs.d.5.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ containers-certs.d - Directory for storing custom container-registry TLS configu
55

66
# DESCRIPTION
77
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`.
8-
The name of the directory must correspond to the `host:port` of the registry (e.g., `my-registry.com:5000`).
8+
The name of the directory must correspond to the `host`[`:port`] of the registry (e.g., `my-registry.com:5000`).
9+
10+
The port part presence / absence must precisely match the port usage in image references,
11+
e.g. to affect `podman pull registry.example/foo`,
12+
use a directory named `registry.example`, not `registry.example:443`.
13+
`registry.example:443` would affect `podman pull registry.example:443/foo`.
914

1015
## Directory Structure
1116
A certs directory can contain one or more files with the following extensions:
@@ -18,7 +23,7 @@ Note that the client certificate-key pair will be selected by the file name (e.g
1823
An exemplary setup for a registry running at `my-registry.com:5000` may look as follows:
1924
```
2025
/etc/containers/certs.d/ <- Certificate directory
21-
└── my-registry.com:5000 <- Hostname:port
26+
└── my-registry.com:5000 <- Hostname[:port]
2227
├── client.cert <- Client certificate
2328
├── client.key <- Client key
2429
└── ca.crt <- Certificate authority that signed the registry certificate

0 commit comments

Comments
 (0)