@@ -151,24 +151,25 @@ TEST_FIXTURE(uri_address, no_transfer_encoding_content_length)
151
151
}
152
152
153
153
// Note additional sites for testing can be found at:
154
+ // https://badssl.com/
154
155
// https://www.ssllabs.com/ssltest/
155
156
// http://www.internetsociety.org/deploy360/resources/dane-test-sites/
156
157
// https://onlinessl.netlock.hu/#
157
158
TEST (server_selfsigned_cert)
158
159
{
159
160
handle_timeout ([]
160
161
{
161
- http_client client (U (" https://www.pcwebshop.co.uk /" ));
162
+ http_client client (U (" https://self-signed.badssl.com /" ));
162
163
auto requestTask = client.request (methods::GET);
163
164
VERIFY_THROWS (requestTask.get (), http_exception);
164
165
});
165
166
}
166
167
167
- TEST (server_hostname_mismatch, " Ignore " , " Site fixed certificate. Improve test (new site or alternate method). " )
168
+ TEST (server_hostname_mismatch)
168
169
{
169
170
handle_timeout ([]
170
171
{
171
- http_client client (U (" https://swordsoftruth .com/" ));
172
+ http_client client (U (" https://wrong.host.badssl .com/" ));
172
173
auto requestTask = client.request (methods::GET);
173
174
VERIFY_THROWS (requestTask.get (), http_exception);
174
175
});
@@ -180,7 +181,7 @@ TEST(server_cert_expired)
180
181
{
181
182
http_client_config config;
182
183
config.set_timeout (std::chrono::seconds (1 ));
183
- http_client client (U (" https://tv.eurosport .com/" ), config);
184
+ http_client client (U (" https://expired.badssl .com/" ), config);
184
185
auto requestTask = client.request (methods::GET);
185
186
VERIFY_THROWS (requestTask.get (), http_exception);
186
187
});
0 commit comments