Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dotnet core 2.1.302 Ubuntu Linux Development certificate trust

I am running ubuntu 18.04 and I have installed dotnet 2.1.302. I need help in trusting the developer certificates to run my aspnetcore app with https. So far I managed to import the certificates from /home/alberto/.dotnet/corefx/cryptography/x509stores/ca and /home/alberto/.dotnet/corefx/cryptography/x509stores/my in chrome but they still show untrusted. A search of the web only revealed how to create your own certificate and run it but I just need to use the ones by MS for development if possible. Any help appreciated!

Cheers, Alberto

like image 516
Alberto L. Bonfiglio Avatar asked Jul 27 '18 22:07

Alberto L. Bonfiglio


1 Answers

There is no centralized way of trusting the a certificate on Linux so you can do one of the following:

  1. Exclude the URL you are using in your browsers exclude list
  2. Trust all self-signed certificates on localhost
  3. Add the https.crt to the list of trusted certificates in your browser.

See Configuring HTTPS in ASP.NET Core across different platforms and there are documentation links if you are using just Kestrel or Kestrel with reverse proxy like Apache or Nginx.

like image 149
Dmitry Pavlov Avatar answered Nov 07 '22 16:11

Dmitry Pavlov