Alberto L. Bonfiglio
Alberto L. Bonfiglio

Reputation: 1835

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

Upvotes: 15

Views: 9470

Answers (1)

Dmitry Pavlov
Dmitry Pavlov

Reputation: 28320

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.

Upvotes: 1

Related Questions