-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxying with SSL Not Working in .NET Core 3.1 #524
Comments
@StefH any ideas on this issue? |
@xadvfh And with this mapping: server
.Given(Request.Create().WithHeader("ProxyThisHttps", "true")
.UsingGet())
.RespondWith(Response.Create()
.WithProxy("https://www.google.com")
); Works fine when I access my wiremock on https://localhost:9433 in postman--> However I do get an error that my certificate is not valid, but that's expected: |
Does this help you @xadvfh , or do you still have issues? |
my apologies @StefH I didn't get notifications for this. I will try this out sometime this weekend or early next week and get back to you. |
@StefH this is still not working for me. I made a very simple program in another solution: using System.Threading;
using WireMock.RequestBuilders;
using WireMock.ResponseBuilders;
using WireMock.Server;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
var server = WireMockServer.Start(ssl: true, port: 10080);
server
.Given(Request.Create()
.UsingAnyMethod())
.RespondWith(Response.Create()
.WithProxy("https://www.google.com"));
// open browser and point to https://localhost:10080
Thread.Sleep(60000);
}
}
} |
Are you using .NET Framework or .NET Core? |
.NET core |
|
OK Thanks for the information. PR = #547 Can you try version |
@StefH that worked! thanks! |
@xadvfh -> a new official version will be released today. |
tested and works in the official new version. thanks again. |
Describe the bug
I am trying to create a proxy with SSL enabled but keep getting the error
{"status":"The header name format is invalid."}
.Expected behavior:
Proxy with ssl works.
Test to reproduce
-3 Navigate to https://localhost:[your-port]
Other related info
2, I am able to proxy with ssl via the Java version of wiremock so I know it's nothing to do with the website I am proxying to.
The text was updated successfully, but these errors were encountered: