moto/tests/test_acm/resources
Bernhard M. Wiedemann 951a5a6b00 Extend test cert validity to 2049
to make tests pass in 2027

Background:
As part of my work on reproducible builds for openSUSE, I check
that software still gives identical build results in the future.
The usual offset is +15 years, because that is how long I expect
some software will be used in some places.
This showed up failing tests in our package build.

See https://reproducible-builds.org/ for why this matters.

Note: I tested that i586 builds still pass tests on 2036-12-01
so are not affected by the year 2038 bug yet.

i586 builds in 2037 suffer from a y2038 bug (unrelated to this change):
 botocore/utils.py parse_timestamp threw a
  ValueError: Invalid timestamp "2174774434": Parser must be a string or character stream, not long
2019-10-21 17:12:16 +02:00
..
ca.key Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
ca.pem Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
ca.srl Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
README.md Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
star_moto_com-bad.pem Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
star_moto_com.csr Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
star_moto_com.key Added nearly all ACM method implementations 2017-09-22 00:20:26 +01:00
star_moto_com.pem Extend test cert validity to 2049 2019-10-21 17:12:16 +02:00

Simple CA and server cert generation

Commands:

openssl genrsa -out ca.key 4096
openssl req -x509 -new -nodes -key ca.key -sha512 -days 3650 -out ca.pem
openssl genrsa -out star_moto_com.key 2048
openssl req -new -key star_moto_com.key -out star_moto_com.csr
openssl x509 -req -in star_moto_com.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out star_moto_com.pem -days 3650 -sha512

Also appended GeoTrust cert to the ca.pem

-----BEGIN CERTIFICATE-----
MIIEKDCCAxCgAwIBAgIQAQAhJYiw+lmnd+8Fe2Yn3zANBgkqhkiG9w0BAQsFADBC
MQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMS
R2VvVHJ1c3QgR2xvYmFsIENBMB4XDTE3MDUyMjExMzIzN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