Skip to content

Instantly share code, notes, and snippets.

@alaawahbah
Created September 7, 2023 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaawahbah/6cdc049561ae9adcc25d624594942fb2 to your computer and use it in GitHub Desktop.
Save alaawahbah/6cdc049561ae9adcc25d624594942fb2 to your computer and use it in GitHub Desktop.
if you got key not found
https://stackoverflow.com/questions/57012001/invalidoperationexception-key-type-not-specified-microsoft-aspnetcore-apiautho
For File
"IdentityServer": {
"Key": {
"Type": "File",
"FilePath": "C:\cert.pfx",
"Password": "password123"
}
}
For Development (don't use in production obviously)
"IdentityServer": {
"Key": {
"Type": "Development"
}
}
For Store
"IdentityServer": {
"Key": {
"Type": "Store",
"StoreName": "My",
"StoreLocation": "CurrentUser",
"Name": "CN=MyApplication"
}
}
link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment