debian-forge/test/data/certs
Michael Vogt f0f9d8677a test: update the test cert to expire in 100y
When generating the original test certs no `-days` paramter was
passed which resulted in a too low `notAfter` value.

This commit fixes this and uses 100y also updates the README:
```
$ openssl x509 -enddate -noout -in test/data/certs/cert1.pem
notAfter=Aug  2 10:42:40 2124 GMT
$ openssl x509 -enddate -noout -in test/data/certs/cert2.pem
notAfter=Aug  2 10:42:45 2124 GMT
```
This fixes a test failure in https://github.com/osbuild/osbuild/pull/1819
for the `test_curl_download_many_mixed_certs` test.
2024-08-27 09:39:17 +02:00
..
cert1.pem test: update the test cert to expire in 100y 2024-08-27 09:39:17 +02:00
cert2.pem test: update the test cert to expire in 100y 2024-08-27 09:39:17 +02:00
key1.pem test: update the test cert to expire in 100y 2024-08-27 09:39:17 +02:00
key2.pem test: update the test cert to expire in 100y 2024-08-27 09:39:17 +02:00
README.md test: update the test cert to expire in 100y 2024-08-27 09:39:17 +02:00

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"   \
   -days 36500 \
   -keyout "key1.pem" -out "cert1.pem"