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?