Skip to content

Commit 110115e

Browse files
committed
Marking http_listener https test case manual as it requires certificate setup.
Adding instructions on how to generate a self signed cert.
1 parent 8128b88 commit 110115e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Release/tests/Functional/http/listener/requests_tests.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,17 @@ TEST_FIXTURE(uri_address, uri_encoding)
235235
client.request(methods::GET, encoded_uri).wait();
236236
}
237237

238-
TEST_FIXTURE(uri_address, https_listener)
238+
TEST_FIXTURE(uri_address, https_listener, "Ignore", "Manual")
239239
{
240+
// Requires a certificate for execution.
241+
// Here are instructions for creating a self signed cert. Full instructions can be located here:
242+
// http://blogs.msdn.com/b/haoxu/archive/2009/04/30/one-time-set-up-for-wwsapi-security-examples.aspx
243+
// From an elevated admin prompt:
244+
// 1. MakeCert.exe -ss Root -sr LocalMachine -n "CN=Fake-Test-CA" -cy authority -r -sk "CAKeyContainer"
245+
// 2. MakeCert.exe -ss My -sr LocalMachine -n "CN=localhost" -sky exchange -is Root -ir LocalMachine -in Fake-Test-CA -sk "ServerKeyContainer"
246+
// 3. Find corresponding SHA-1 hash with CertUtil.exe -store My localhost
247+
// 4. Netsh.exe http add sslcert ipport=0.0.0.0:8443 appid={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=<40CharacterThumbprintWithNoSpaces>
248+
240249
http_listener listener(m_secure_uri);
241250
listener.open().wait();
242251
client::http_client client(m_secure_uri);

0 commit comments

Comments
 (0)