Questions tagged [dotnet-dev-certs]

`dev-certs` is a dotnet tool used to install developer certificates. It can be executed by executing `dotnet dev-certs`. Use this tag for questions regarding `dev-certs`.

9 questions
13
votes
3 answers

Exporting https certificate fails with 'dotnet dev-certs' tool

I am trying to use the 'dotnet dev-certs' tool to export an https certificate to include with a Docker image. Right now I am using: dotnet dev-certs https -v -ep $(HOME)\.aspnet\https -p and I get the error: Exporting the certificate…
Kevin Burton
  • 2,032
  • 4
  • 26
  • 43
13
votes
2 answers

How can I use new HTTPS localhost certificate

I have a problem with HTTPS when I am running (dotnet run) my .NetCore application locally on Windows. It was working till my localhost certificate expired… I clean up old certificates and generated the new one by dotnet dev-certs https…
Blagalin
  • 799
  • 2
  • 8
  • 21
12
votes
1 answer

How to Install dotnet dev-certs certificate on a CI Server

I would like to run my API using dotnet run, so I can run some tests against it. However, on Azure Pipelines and AppVeyor, they don't have a developer certificate installed and I get an error when I try to start my API. Installing a developer…
3
votes
0 answers

dev-certs in arch linux(.net)

So I started working with asp.net core on my computer running arch linux. When I was on mac, to get dev-certs to work, I would run dotnet dev-certs https --trust in terminal to setup dev certs. This only works on osx and windows. To try and get the…
2
votes
1 answer

Why is no certificate found when I run `dotnet dev-certs -c`, but when I run `dotnet dev-certs --trust` it says there is already a valid certifcate

I'm on a Mac and I cannot get dotnet to recognize my dev-cert, preventing me from running https on localhost. When I run dotnet dev-certs https -c -v, I get back No valid certificate found. But when I run dotnet dev-certs https --trust, I get back A…
Matt Pell
  • 31
  • 2
0
votes
1 answer

Unable to trust ASP.NET SSL dev certificate

I have been going around and around with this issue. I can create a dev-cert using dotnet dev-certs https --trust but the certificate only appears in the Personal certificates folder. If I try copying it to the Trusted folder it disappears on…
nathanjw
  • 832
  • 2
  • 13
  • 23
0
votes
1 answer

IIS can't connect to standalone HTTPS Kestrel due to SSL error

My IIS application is unable to connect to my standalone ASP.net Core application because my IIS is failing to validate the SSL certificate of the ASP.net Core. I have a very basic knowledge with certificates but it seems that the app pool doesn't…
LostInComputer
  • 15,188
  • 4
  • 41
  • 49
0
votes
1 answer

Create developer certificate on windows 10

I just tried creating a trusted developer certificate on my local machine (Windows 10). I follow the below listed commands. Frist to verify any certs exists. C:\>dotnet dev-certs https --check No valid certificate found. Then I create the trusted…
RSF
  • 510
  • 6
  • 18
0
votes
0 answers

dotnet dev-certs https --trust not work and return this error "There was an error creating the HTTPS developer certificate."

in windows 10 i want create and run .net core project but before need to trust to certificate by this cli command "dotnet dev-certs https --trust" when I execute this command return error like this "There was an error creating the HTTPS developer…
Ali Tanha
  • 13
  • 5