test: add new https_serve_directory() and test certs
This commit adds a new `https_serve_directory()` test helper and some custom self-signed and worthless certs that are used during testing. They are not dynamically generated to avoid the extra compuation time during tests (but they could be). Generated via: ``` $ openssl req -new -newkey rsa:2048 -nodes -x509 \ -subj "/C=DE/ST=Berlin/L=Berlin/O=Org/CN=localhost" \ -keyout "key1.pem" -out "cert1.pem" ``` This will allow us to test `https` download URLs as well in e.g. the curl source.
This commit is contained in:
parent
52200c581d
commit
e535877798
7 changed files with 172 additions and 4 deletions
10
test/data/certs/README.md
Normal file
10
test/data/certs/README.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
This directory contains custom self-signed and worthless certs used
|
||||
during testing. They are not dynamically generated to avoid the extra
|
||||
compuation time during tests (but they could be).
|
||||
|
||||
Generated via:
|
||||
```
|
||||
$ openssl req -new -newkey rsa:2048 -nodes -x509 \
|
||||
-subj "/C=DE/ST=Berlin/L=Berlin/O=Org/CN=localhost" \
|
||||
-keyout "key1.pem" -out "cert1.pem"
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue