mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out snitest.com.cert \
|
|
-keyout snitest.com.key \
|
|
-subj "/CN=snitest.com" \
|
|
-addext "subjectAltName = DNS:snitest.com"
|
|
|
|
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out www.snitest.com.cert \
|
|
-keyout www.snitest.com.key \
|
|
-subj "/CN=www.snitest.com" \
|
|
-addext "subjectAltName = DNS:www.snitest.com"
|
|
|
|
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out snitest.org.cert \
|
|
-keyout snitest.org.key \
|
|
-subj "/CN=snitest.org" \
|
|
-addext "subjectAltName = DNS:snitest.org"
|
|
|
|
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out uppercase_wildcard.www.snitest.com.cert \
|
|
-keyout uppercase_wildcard.www.snitest.com.key \
|
|
-subj "/CN=FOO.WWW.SNITEST.COM" \
|
|
-addext "subjectAltName = DNS:*.WWW.SNITEST.COM"
|
|
|
|
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out wildcard.www.snitest.com.cert \
|
|
-keyout wildcard.www.snitest.com.key \
|
|
-subj "/CN=*.www.snitest.com" \
|
|
-addext "subjectAltName = DNS:*.www.snitest.com"
|
|
|
|
openssl req -newkey rsa:2048 \
|
|
-new -nodes -x509 \
|
|
-days 3650 \
|
|
-out wildcard.snitest.com.cert \
|
|
-keyout wildcard.snitest.com.key \
|
|
-subj "/CN=*.snitest.com" \
|
|
-addext "subjectAltName = DNS:*.snitest.com"
|
|
|