Closed bwalls040971 closed 3 weeks ago
The KeyManagement
options will not be used if automatic key management is disabled.
When you call AddSigningCredential()
with a certificate the certificate is read and the data is then kept in memory. There is no key to save to disk/database - your certificate is the key.
The
KeyManagement
options will not be used if automatic key management is disabled.When you call
AddSigningCredential()
with a certificate the certificate is read and the data is then kept in memory. There is no key to save to disk/database - your certificate is the key.
Got it - thank you for the clarification!
I cannot seem to find where my signing key is being stored. I have set KeyManagement.Enabled = false and a KeyManagement.KeyPath to a shared location. I then call AddSigningCredential to add my certificate. I can login with my other applications, so it appears to be working, but I am confused as to why I never see a signing key like I do with the Data Protection keys.
I have cleared the Keys table in the database and I call builder.Services.Remove for a typeof(SigningKeyStore) after I call AddOperationalStore. I am under the impression that the key should be stored in the KeyManagement.KeyPath location at this point, but I never see anything in the path. I am using a similar share path and setup for Data Protection and I do see the DP keys created.
I do not see a local 'Keys' directory in the app, nor do I do not have an entry in the keys database table. Where is my signing key at this point?
Below is the code I am using in Program.cs. Should I be manually adding the signing credential key differently?
I am using IdentityServer v6.05 / .Net 6. Thank you.