-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Milestone
Description
We're recently decoupled the CN from the registry name as part of the signing and validation.
However, docker nv2 notary sign attempts to match CN with the registry name:
openssl req \
-x509 \
-sha256 \
-nodes \
-newkey rsa:2048 \
-days 365 \
-subj "/CN=registry.wabbit-networks.io/O=wabbit-networks inc/C=US/ST=Washington/L=Seattle" \
-addext "subjectAltName=DNS:registry.wabbit-networks.io" \
-keyout ./wabbit-networks.key \
-out ./wabbit-networks.crtFollowd by:
docker notary sign \
--key ./wabbit-networks.key \
--cert ./wabbit-networks.crt \
localhost:5000/net-monitor:v1Fails with:
Generating Docker mainfest: localhost:5000/net-monitor:v1
Signing sha256:0da7b8db631b5faeff09f6217de7ac47bdcd53e0e7a15cec559a8140ac164f5c
2021/04/23 17:44:13 x509: certificate is valid for registry.wabbit-networks.io, not localhostExpected
Signing to not validate against the CN
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels