Using dotnet secret
From Logic Wiki
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