Updated Using HTTPS with SSL (markdown)

Stef Heyenrath
2018-07-26 13:33:35 +02:00
parent 72e1edaa2f
commit bbdc4794f8
2 changed files with 16 additions and 1 deletions

16
Using-HTTPS-(SSL).md Normal file

@@ -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.

@@ -1 +0,0 @@
.