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
329 stars 71 forks source link

Save pfx file #11

Closed olkkoo closed 1 year ago

olkkoo commented 1 year 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 1 year 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.