IIS Express self-signed certificate not trusted

Viewed 7210

When debugging a new .net core website (file => new project) in Visual Studio 2017, I am prompted with the question if I wish to trust the self-signed IIS express certificate:

However, after clicking "Yes", I don't get the security warning to add the certificate. Instead, I am redirected to the browser directly, and get a security warning:

I am running Windows 10

Does anyone know how to resolve this issue?

Edit:

According to this guide, I should get a security warning after clicking "Yes". But that window is not shown. (I know, that guide is about VS2013).

2 Answers

Try the following on your command prompt:

dotnet dev-certs https --trust
Related