Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1818

.net development certificate keeps getting deleted

$
0
0

Recently, I've been working on a project which signed data using certificates. Since then my trusted certificates (Including .net development certificate) are getting deleted rapidly. Using dotnet dev-certs https --trust I have to repeat trusting the certificate (and it is getting deleted after 2 or 3 seconds over and over at the same time) before my application startup is done. If I can find the key moment when I need to trust the certificate, it's all good. If not, the following exception is thrown on startup end:

System.InvalidOperationException:'Unable to configure HTTPS endpoint.No server certificate was specified, and the default developercertificate could not be found or is out of date. To generate adeveloper certificate run 'dotnet dev-certs https'. To trust thecertificate (Windows and macOS only) run 'dotnet dev-certs https--trust'. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.'

It's been really irritating and I need to find the source of this issue. I also have used certmgr.msc and can confirm my certificates are removed from /Current User/Personal/Certificates/ every 2 to 3 seconds.


Viewing all articles
Browse latest Browse all 1818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>