mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-06 06:28:56 +01:00
- Multi-domain certificates support wildcards as well
This commit is contained in:
parent
1504af585c
commit
57b12982b3
8 changed files with 161 additions and 74 deletions
|
|
@ -61,15 +61,9 @@ openssl req -config sslconf_use.txt -new -key cert_digest.key -out cert_sha512.r
|
|||
cat sslconf.txt > sslconf_use.txt;echo "CN=*.example.com" >> sslconf_use.txt
|
||||
openssl req -config sslconf_use.txt -new -key cert_digest.key -out cert_example_wildcard.req
|
||||
|
||||
cat sslconf.txt > sslconf_use.txt;echo "CN=example.com" >> sslconf_use.txt
|
||||
openssl req -config sslconf_use.txt -new -key cert_digest.key -out cert_example.req
|
||||
|
||||
cat sslconf.txt > sslconf_use.txt;echo "CN=www.example.com" >> sslconf_use.txt
|
||||
openssl req -config sslconf_use.txt -new -key cert_digest.key -out cert_example_www.req
|
||||
|
||||
cat sslconf.txt > sslconf_use.txt;echo "CN=www.example.com" >> sslconf_use.txt
|
||||
echo "[ v3_req ]" >> sslconf_use.txt
|
||||
echo "subjectAltName = \"DNS:www.example.com,DNS:example.com,DNS:example.net\"" >> sslconf_use.txt
|
||||
echo "subjectAltName = \"DNS:www.example.com,DNS:example.com,DNS:example.net,DNS:*.example.org\"" >> sslconf_use.txt
|
||||
openssl req -config sslconf_use.txt -new -key cert_digest.key -out cert_example_multi.req -reqexts "v3_req"
|
||||
|
||||
echo "Signing requests"
|
||||
|
|
@ -85,7 +79,7 @@ do
|
|||
-batch -in cert_$i.req -md $i
|
||||
done
|
||||
|
||||
for i in example_wildcard example example_www example_multi;
|
||||
for i in example_wildcard example_multi;
|
||||
do
|
||||
openssl ca -config sslconf.txt -out cert_$i.crt -passin pass:$PASSWORD \
|
||||
-batch -in cert_$i.req
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue