mirror of
https://github.com/containers/skopeo.git
synced 2025-07-31 22:45:20 +00:00
Merge pull request #1062 from edsantiago/openssl_san
Add Subject Alternative Name to local openssl cert
This commit is contained in:
commit
d8bc8b62e9
@ -331,7 +331,8 @@ start_registry() {
|
||||
log_and_run openssl req -newkey rsa:4096 -nodes -sha256 \
|
||||
-keyout $AUTHDIR/domain.key -x509 -days 2 \
|
||||
-out $CERT \
|
||||
-subj "/C=US/ST=Foo/L=Bar/O=Red Hat, Inc./CN=localhost"
|
||||
-subj "/C=US/ST=Foo/L=Bar/O=Red Hat, Inc./CN=registry host certificate" \
|
||||
-addext subjectAltName=DNS:localhost
|
||||
fi
|
||||
|
||||
reg_args+=(
|
||||
|
Loading…
Reference in New Issue
Block a user