-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tokio-rustls requirement from 0.22 to 0.23 (#573)
Updates the requirements on [tokio-rustls](https://github.com/tokio-rs/tls) to permit the latest version. - [Release notes](https://github.com/tokio-rs/tls/releases) - [Commits](https://github.com/tokio-rs/tls/commits) --- updated-dependencies: - dependency-name: tokio-rustls dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominic <git@msrd0.de>
- Loading branch information
1 parent
13f9a07
commit d4f3780
Showing
14 changed files
with
81 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# certificate authority | ||
openssl ecparam -genkey -name prime256v1 -out tls_ca_key.pem | ||
openssl req -batch -new -x509 -days 3650 -subj '/CN=Gotham Test CA' -extensions v3_ca -key tls_ca_key.pem -outform DER -out tls_ca_cert.der | ||
|
||
# server certificate | ||
openssl ecparam -genkey -name prime256v1 -outform DER | \ | ||
openssl pkcs8 -topk8 -inform DER -nocrypt -outform DER -out tls_key.der | ||
serial=$(calc 0x`openssl rand -hex 20`) | ||
cat >tls_req.cnf <<EOF | ||
[ext] | ||
subjectAltName = @alt_names | ||
[alt_names] | ||
DNS.1=example.org | ||
DNS.2=example.com | ||
DNS.3=localhost | ||
IP.1=127.0.0.1 | ||
IP.2=::1 | ||
EOF | ||
openssl req -batch -new -subj '/CN=example.org' -keyform DER -key tls_key.der | \ | ||
openssl x509 -req -days 3650 -CAform DER -CA tls_ca_cert.der -CAkey tls_ca_key.pem -extfile tls_req.cnf -extensions ext -set_serial $serial -outform DER -out tls_cert.der | ||
|
||
# cleanup | ||
rm tls_req.cnf | ||
rm tls_ca_key.pem | ||
|
||
# print certificates | ||
echo | ||
echo -e "\e[1mCA certificate:\e[0m" | ||
openssl x509 -noout -text -inform DER -in tls_ca_cert.der | ||
echo | ||
echo -e "\e[1mServer certificate:\e[0m" | ||
openssl x509 -noout -text -inform DER -in tls_cert.der |