- ๐ Hi, Iโm @cuttlfish
- ๐ Iโm interested in ...
- ๐ฑ Iโm currently learning ...
- ๐๏ธ Iโm looking to collaborate on ...
- ๐ซ How to reach me ...
For linux use these steps to create dev cert
dotnet dev-certs https -ep ~/.aspnet/https/aspnetapp.pem --format PEM sudo cp ~/.aspnet/https/aspnetapp.pem /etc/ssl/certs/ sudo update-ca-certificates
With this running a simple web app will allow curl to work
dotnet new webapp -n AspNetCoreDemo -o firstwebapp
This allows curl to access the https url of the webapp
Linux http client still has problem because in C# http client it doesn't look at /etc/ssl/certs/ca.crt when making request. Cert errors can be ignored by overwriting ServerCertificateCustomValidationCallback and just returning true even though there was an error