BorisWilhelms / create-dotnet-devcert

A simple script that creates and trusts a self-signed development certificate for dotnet on Linux distributions.
https://blog.wille-zone.de/post/aspnetcore-devcert-for-ubuntu
MIT License
335 stars 74 forks source link

Save pfx file #11

Closed olkkoo closed 2 years ago

olkkoo commented 2 years ago

PFX file is needed in dotnet Kestrel. It can be given through an environment variable that tells Kestrel the path to the PFX file. ASPNETCORE_Kestrel__Certificates__Default__Path is the variable name. That can be added to .bashrc or similar.

BorisWilhelms commented 2 years ago

I am not sure, why you need the PFX for Kestrel, since the whole point of the script is that it will add the cert to dotnet and will be used by kestrel in development automatically.

But, I guess it does not hurt to have the PFX with the cert option.