grpc-dart/test/data
Vyacheslav Egorov 17a40219ba
Regenerate certificates used by tests. (#352)
Current certificates don't pass verification on Mac OS X Catalina
making it impossible to run test suite on Mac laptops.
2020-09-18 10:27:36 +02:00
..
README.md Regenerate certificates used by tests. (#352) 2020-09-18 10:27:36 +02:00
certstore.p12 Regenerate certificates used by tests. (#352) 2020-09-18 10:27:36 +02:00
localhost.crt Regenerate certificates used by tests. (#352) 2020-09-18 10:27:36 +02:00
localhost.key Regenerate certificates used by tests. (#352) 2020-09-18 10:27:36 +02:00

README.md

This folder contains self-signed certificates used for testing.

These files are generated using the following commands:

$ faketime '2019-01-01' openssl req -newkey rsa:2048                      \
                                    -nodes                                \
                                    -keyout localhost.key                 \
                                    -x509                                 \
                                    -days 36500                           \
                                    -out localhost.crt                    \
                                    -addext extendedKeyUsage=serverAuth   \
                                    -addext subjectAltName=DNS:localhost
# CN=localhost, the rest of the fields are left empty (.)
$ openssl pkcs12 -export -out certstore.p12 -inkey localhost.key -in localhost.crt
# Password: correct

Note that the choice of starting date for certificate as well as the choice of extensions (EKU and SAN) are crucial for satisfying Mac OS X requirements for TLS certificates.

If these are not satisfied tests will hang and spew cryptic "Connection terminated during handshake" errors.