If I use a Let’s Encrypt certificate I’ll not have a password.
How can I add LetsEncrypt certificate into appsettings.json?
This is a sample of my part of code to edit with the certificate information, password is required.
If I leave the password empty:
info: IdentityServer4.Startup[0]
Starting IdentityServer4 version 3.0.0.0
crit: Microsoft.AspNetCore.Hosting.Diagnostics[6]
Application startup exception
System.InvalidOperationException: There was an error loading the certificate. Either the password is incorrect or the process does not have permisions to store the key in the Keyset ‘DefaultKeySet’
I solved by creating a new certificate with advanced options, in this way I can set the password required to use certificate in my .NET Core project.
Thanks for wrote me that also Let’s Encrypt certificate can have a password.
Greetings at all.