I'm using uwsgi 2.0.8 on AWS. I followed the instructions on http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html to start my web app.
uwsgi --master --https 0.0.0.0:8443,foobar.crt,foobar.key
However, it reports this error: uwsgi: unrecognized option '--https'
.
Anyone helps?
PS: I also installed uwsgi 2.0.8 on my own MBP, it works well with --https
.
Below are how I solved the same issue:
Try installing uwsgi with below mentioned command on mac:
CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" UWSGI_PROFILE_OVERRIDE=ssl=true pip install uwsgi -Iv
And if you are trying on Centos, then make sure openssl and openssl-devel package is installed.
I was on a limited RedHat 7.7 instance and libssl-dev
was unavailable to me, I was able to use openssl-devel
instead.
Note: I also needed to update iptables
to open port 8443 since my instance was pretty locked down
uwsgi --master --https 0.0.0.0:8443,foobar.crt,foobar.key
then works as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With