Forums

SSL certificate not working

Hello! I followed this link https://help.pythonanywhere.com/pages/HTTPSSetup in setting up my Let's Encrypt certificate but after 16 hours plus, my website is still showing not secure

Websites have two URLs, a secure HTTPS one and a non-secure HTTP one. Setting up the Let's Encrypt certificate just makes it possible to use the secure URL -- if you go to the non-secure one, it will still show up as "not secure". If you want people who access the non-secure URL to be redirected to the secure one, you need to use the force HTTPS option.

Hello Giles, The website is still showing not secure. I selected Let's Encrypt and enabled "Force HTTPS" but the website is still showing not display

You're serving mixed content, which marks the site as insecure. Make sure that any resources that you access from your page (javascript, css, images etc.) are loaded using https and not http.

Hi guys, I started receiving (it's a recurring task that was working before) the following error when connecting an AWS RDS MYSQL DB.

File "sigueallider_AGG_pleb.py", line 24, in <module> charset='utf8' File "/home/endco/.virtualenvs/envrobot_oe/lib/python3.7/site-packages/MySQLdb/init.py", line 130, in Connect return Connection(args, kwargs) File "/home/endco/.virtualenvs/envrobot_oe/lib/python3.7/site-packages/MySQLdb/connections.py", line 185, in init super().init(args, **kwargs2) MySQLdb._exceptions.OperationalError: (2026, 'SSL connection error: unknown error number')

According to Amazon is somehow related to SSL Certificate

https://aws.amazon.com/premiumsupport/knowledge-center/rds-error-2026-ssl-connection/#:~:text=id%20is%2026-,ERROR%202026%20(HY000)%3A%20SSL%20connection%20error%3A%20Server%20doesn',engine%20that%20supports%20SSL%20connections.

It looks like you're on our fishnchips system image, which is a couple of years old. The most likely cause of certificates that used to work suddenly having problems is if the server at the other side of the connection has upgraded its certificate to a new one that is based on a trusted root certificate that doesn't exist on older operating systems. If that's the case, the best option is to update your system image to the most recent one -- see this help page for details.

Thanks that worked.

Excellent, thanks for confirming!