From bbdc4794f8f4c6acc144c07478073a97288b0380 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 26 Jul 2018 13:33:35 +0200 Subject: [PATCH] Updated Using HTTPS with SSL (markdown) --- Using-HTTPS-(SSL).md | 16 ++++++++++++++++ Using-HTTPS-with-SSL.md | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Using-HTTPS-(SSL).md delete mode 100644 Using-HTTPS-with-SSL.md diff --git a/Using-HTTPS-(SSL).md b/Using-HTTPS-(SSL).md new file mode 100644 index 0000000..49c02be --- /dev/null +++ b/Using-HTTPS-(SSL).md @@ -0,0 +1,16 @@ +### HTTP (SSL) +You can start a standalone mock server listening for HTTPS requests. To do so, there is just a flag to set when creating the server: +```csharp +var server1 = FluentMockServer.Start(port: 8443, ssl: true); + +// or like this + +var server2 = FluentMockServer.Start(new FluentMockServerSettings +{ + Urls = new[] { "http://localhost:9091", "https://localhost:9443" } +}); +``` + +- In case when using **net 4.5.2** or **net 4.6**, you need a certificate registered on your box, properly associated with your application and the port number that will be used. This is not really specific to WireMock.Net, not very straightforward and hence the following stackoverflow thread might come handy: [Httplistener with https support](http://stackoverflow.com/questions/11403333/httplistener-with-https-support). + +- When using **netstandard**, WireMock.Net uses a self signed certificate (which can be overriden if you like) to host https urls. \ No newline at end of file diff --git a/Using-HTTPS-with-SSL.md b/Using-HTTPS-with-SSL.md deleted file mode 100644 index 945c9b4..0000000 --- a/Using-HTTPS-with-SSL.md +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file