Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6093

How can I make dotnet accept self signed CA (MITMproxy) in ubuntu (wsl2)?

$
0
0

I installed mitmproxy and started it - I then added it's CA certificate to the ubuntu accepted CAs (copied to /usr/local/share/ca-certificates/ and added to accepted with update-ca-certificates).

curl www.google.com --proxy 127.0.0.1:8080

now works without a warning.But when I start my dotnet app (within vs code connected to wsl2) and it tries to access external APIs, I get

> The SSL connection could not be established, see inner exception.>        ---> Azure.RequestFailedException: The SSL connection could not be established, see inner exception.>        ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.>        ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate> chain: RevocationStatusUnknown, OfflineRevocation

(I added https_proxy: http://127.0.0.1:8080 via env variables)

Any ideas how I make sure that dotnet accepts my mitm certificate, so I can see traffic in mitmproxy?


Viewing all articles
Browse latest Browse all 6093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>