Geting Certificate exception on .Net when accept the Fiddler certificate

100 Views Asked by At

In my local project when ı'm trying to send post request to outsource api, I want to watch my request and content of it (header, body ect.). I turn on HTTPS decryption and trust Fiddler's root certificate. But ı get that exception in my .Net project (work in docker container):

InnerException = {System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: PartialChain at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exceptio...

Any solution advice ? ty.

1

There are 1 best solutions below

0
Alperen Öz On

Run the program in IIS Express, not in Docker, and got the solution. Thanks for help.