mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
transfer ci: use subjectAltName in cert
This commit is contained in:
parent
368660196d
commit
279f460199
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ fi
|
||||||
$SUDO echo "127.0.0.1 example.com" >> /etc/hosts
|
$SUDO echo "127.0.0.1 example.com" >> /etc/hosts
|
||||||
|
|
||||||
openssl ecparam -genkey -name prime256v1 -out key.pem
|
openssl ecparam -genkey -name prime256v1 -out key.pem
|
||||||
openssl req -new -sha256 -key key.pem -out csr.csr -subj "/C=GB/ST=Test/L=Test/O=Test/OU=Test/CN=example.com"
|
openssl req -new -sha256 -key key.pem -out csr.csr -subj "/C=GB/ST=Test/L=Test/O=Test/OU=Test/CN=example.com" -addext "subjectAltName = DNS:example.com"
|
||||||
openssl req -x509 -sha256 -nodes -days 365 -key key.pem -in csr.csr -out cert.crt
|
openssl req -x509 -sha256 -nodes -days 365 -key key.pem -in csr.csr -out cert.crt
|
||||||
openssl pkcs8 -in key.pem -topk8 -nocrypt -out key.pk8
|
openssl pkcs8 -in key.pem -topk8 -nocrypt -out key.pk8
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue