tests/net: Update testing cert.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-24 15:44:08 +01:00
parent bcdb82b83f
commit 6eb0143541
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 54 additions and 46 deletions

View file

@ -510,6 +510,13 @@ fn test_fetch_with_local_urls_only() {
assert!(server_response.is_network_error());
}
// NOTE(emilio): If this test starts failing:
//
// openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
// -keyout resources/privatekey_for_testing.key \
// -out resources/self_signed_certificate_for_testing.crt
//
// And make sure to specify `localhost` as the server name.
#[test]
fn test_fetch_with_hsts() {
static MESSAGE: &'static [u8] = b"";