OLD | NEW |
1 This directory, tests/standalone/io/certificates, contains the | 1 This directory, tests/standalone/io/certificates, contains the |
2 X509 TLS certificates and private keys needed to run tests of Dart's | 2 X509 TLS certificates and private keys needed to run tests of Dart's |
3 secure networking code. The SecureSocket and SecureServer classes | 3 secure networking code. The SecureSocket and SecureServer classes |
4 are tested by making TLS (formerly called SSL) connections, secured | 4 are tested by making TLS (formerly called SSL) connections, secured |
5 by certificates from a self-signed test root authority. | 5 by certificates from a self-signed test root authority. |
6 | 6 |
| 7 The certificates are created by running ../create_sample_certificates.sh |
| 8 in a bash or sh shell, with the openssl tools installed. Run the script |
| 9 twice to create the untrusted_* files. |
| 10 |
7 server_chain.pem: | 11 server_chain.pem: |
8 Contains the chain of certificates, from the self-signed | 12 Contains the chain of certificates, from the self-signed |
9 test certificate authority, through the intermediate CA, to the server | 13 test certificate authority, through the intermediate CA, to the server |
10 certificate, used on the server side of a test connection. | 14 certificate, used on the server side of a test connection. |
11 | 15 |
12 server_key.pem: | 16 server_key.pem: |
13 Contains the private key for the server certificate | 17 Contains the private key for the server certificate |
14 | 18 |
15 trusted_certs.pem: | 19 trusted_certs.pem: |
16 Contains the self-signed certificate of the test certificate authority. | 20 Contains the self-signed certificate of the test certificate authority. |
17 This certificate is set as "trusted" by the client side of the connection | 21 This certificate is set as "trusted" by the client side of the connection |
18 in its SecurityContext object, so that a verified TLS connection to the | 22 in its SecurityContext object, so that a verified TLS connection to the |
19 server can be made. | 23 server can be made. |
20 | 24 |
21 untrusted_server_chain.pem: | 25 untrusted_server_chain.pem: |
22 Contains a chain of certificates, from a different self-signed | 26 Contains a chain of certificates, from a different self-signed |
23 test certificate authority, through an intermediate CA, to a server | 27 test certificate authority, through an intermediate CA, to a server |
24 certificate, used on the server side of a test connection that is intended | 28 certificate, used on the server side of a test connection that is intended |
25 to fail because the client does not accept this certificate authority | 29 to fail because the client does not accept this certificate authority |
26 | 30 |
27 untrusted_server_key.pem: | 31 untrusted_server_key.pem: |
28 Contains the private key for the untrusted server certificate | 32 Contains the private key for the untrusted server certificate |
29 in untrusted_server_chain.pem | 33 in untrusted_server_chain.pem |
30 | 34 |
OLD | NEW |