Running gunicorn on https?

Gunicorn now supports SSL, as of version 17.0. You can configure it to listen on https like this: $ gunicorn –certfile=server.crt –keyfile=server.key test:app If you were using –bind to listen on port 80, remember to change the port to 443 (the default port for HTTPS connections). For example: $ gunicorn –certfile=server.crt –keyfile=server.key –bind 0.0.0.0:443 test:app

How can you tell exactly what insecure items are causing a browser to warn about mixed secure and insecure items?

I found that I get the “mixed content”-warning in Chrome even when there is no mixed content, if sometime during the session mixed content was already encountered on the domain. (Also mentioned here: Why is Chrome reporting a secure / non secure warning when no other browsers aren’t?)

Mono https webrequest fails with “The authentication or decryption has failed”

I had the same problem with Unity (which also uses mono) and this post helped me to solve it. Just add the following line before making your request: ServicePointManager.ServerCertificateValidationCallback = MyRemoteCertificateValidationCallback; And this method: public bool MyRemoteCertificateValidationCallback(System.Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { bool isOk = true; // If there are errors in … Read more

How to enable TLS 1.2 support in an Android application (running on Android 4.1 JB)

2 ways to enable TLSv1.1 and TLSv1.2: use this guideline: http://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/ use this class https://github.com/erickok/transdroid/blob/master/app/src/main/java/org/transdroid/daemon/util/TlsSniSocketFactory.java schemeRegistry.register(new Scheme(“https”, new TlsSniSocketFactory(), port));