sc0tfree / updog

Updog is a replacement for Python's SimpleHTTPServer. It allows uploading and downloading via HTTP/S, can set ad hoc SSL certificates and use http basic auth.
MIT License
2.92k stars 303 forks source link

Allow Custom SSL-Certificates #28

Open Moon93 opened 3 years ago

Moon93 commented 3 years ago

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 with fullchain.pem and privkey.pem. I suggest a command-line option like this: updog --ssl-cert fullchain.pem --ssl-key privkey.pem

patrickhener commented 2 years ago

This one can do it: https://github.com/patrickhener/goshs

bandrel commented 11 hours ago

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')