Open Moon93 opened 3 years ago
This one can do it: https://github.com/patrickhener/goshs
Just modify main.py
ssl_context = None
if args.ssl:
#ssl_context = 'adhoc'
ssl_context=('/etc/letsencrypt/live/domain.com/cert.pem',
'/etc/letsencrypt/live/domain.com/privkey.pem')
I suggest to add a command-line option to allow setting a custom SSL-certificate.
ssl_context
can be set with a touple of(certificate.pem, key.pem)
. When using Let's Encrypt you are provided withfullchain.pem
andprivkey.pem
. I suggest a command-line option like this:updog --ssl-cert fullchain.pem --ssl-key privkey.pem