mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
wiremock as dotnet tool no ssl possible #392
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dschmittwilken on GitHub (Dec 21, 2021).
From the Wiki I could not find out how to enable SSL when using wiremock as .net tool.
I already tried.
dotnet tool run dotnet-wiremock arguments=" --Port 9091 --UseSSL true --ReadStaticMappings true"
and
dotnet tool run dotnet-wiremock arguments=" --Port 9091 --ssl true --ReadStaticMappings true"
@StefH commented on GitHub (Dec 22, 2021):
Hello @dschmittwilken
The
--UseSSLdoes not exists.You can just provide the url(s) as https:
See https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-commandline-parameters
@dschmittwilken commented on GitHub (Dec 28, 2021):
Works like a charm with SSL using
dotnet tool run dotnet-wiremock arguments=" --Urls https://localhost:9091 --ReadStaticMappings true, thank you very much!