Difference between revisions of "Using dotnet secret"

From Logic Wiki
Jump to: navigation, search
(Created page with "Category:dotnet Category:ssl in .csproj file create <UserSecretsId> tag under PropertyGroup like this <UserSecretsId>MyApiName-SomeGUIDOrAnythingUnique</UserSecretI...")
 
 
Line 17: Line 17:
 
---------------------------------
 
---------------------------------
 
Look also : [[Creating a self-signed cert for localhost]]
 
Look also : [[Creating a self-signed cert for localhost]]
 +
 +
[https://youtu.be/UsoH5cqE1OA?t=3115 https://youtu.be/UsoH5cqE1OA?t=3115]

Latest revision as of 10:27, 31 August 2021


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

https://youtu.be/UsoH5cqE1OA?t=3115