Using dotnet secret
From Logic Wiki
Revision as of 10:13, 31 August 2021 by AliIybar (Talk | contribs) (Created page with "Category:dotnet Category:ssl in .csproj file create <UserSecretsId> tag under PropertyGroup like this <UserSecretsId>MyApiName-SomeGUIDOrAnythingUnique</UserSecretI...")
in .csproj file create <UserSecretsId> tag under PropertyGroup like this
<UserSecretsId>MyApiName-SomeGUIDOrAnythingUnique</UserSecretId>
in the command line
dotnet user-secrets set "Kestrel:Certificates:Development:Password""pa55w0rd!"
it's a key value pair
it thne creates a secrets json in "C:\Users\<ProfileFolder / Username>\AppData\Roaming\Microsoft\UserSecrets
it's a hidden file
Look also : Creating a self-signed cert for localhost