NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.16k stars 1.47k forks source link

Nancy with SSL #3004

Closed WattsC-90 closed 4 years ago

WattsC-90 commented 4 years ago

Description

Lets Encrypt offer free certs via the ACME protocol, with the options for running nancy with ssl being the use of netsh from command line this meand a cert would have to be installed or updated manually during runtime. Is it possible to support assigning/updating the certificate that nancy uses at runtime? That way it could be automatically retrieved from letsencrypt and updated periodically as letsencrypt issues short term certs. While its not automatic/periodic, an example of the desired process can be found here https://medium.com/@MaartenSikkema/automatically-request-and-use-lets-encrypt-certificates-in-dotnet-core-9d0d152a59b5 it would allow much slicker ssl deployments versus running netsh commands.

khellang commented 4 years ago

This isn't really a Nancy issue as it depends on the host you're running on. If you're able to get the host to renew certs while running, Nancy shouldn't care 😊

WattsC-90 commented 4 years ago

@khellang Thank you for the input, much appreciated, just trying to piece it all together in my head!