• loading...

Enable SSL certification for your app on pythonanywhere

Pythonanywhere needs you to point them to the location of two files, saved into your files area somewhere (i.e /home/username): 
  • The Private Key, which should be unencrypted, ie it should start with ----BEGIN PRIVATE KEY (or BEGIN RSA PRIVATE KEY) 
  • The Combined Certificate, which consists of your certificate and the certificate chain sent to you by your vendor, should have several BEGIN/END CERTICATE blocks.

Detailed steps can be found here

Once you have two files, let Pythonanywehere know by using a "Send feedback" message (link at the top right of above linked page), The location where you have uploaded your certs  PythonAnywhere yourdomain.com.key and the yourdomain.com.combined.cert files, and which website it's for.

Sample message
Hi support,
As per wiki article https://www.pythonanywhere.com/wiki/SSLOwnDomains, could you please activate the SSL cert for domain yourdomain.com.
Certs are located in /home/username (username.pythonanywhere.com)

Kind regards,

If you ever need an urgent response, send an email to general support [at] pythonanywhere.com email.

From a Bash console on PythonAnywhere, generate the private key and CSR using the openssl command, like this (all on one line, replacing yourdomain.com appropriately):

openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.com.key -out yourdomain.com.csr


Sources / Reference

" Pythonanywhere.com - SSLOwnDomains"

" Pythonanywhere.com (affiliate link) Click to support this page"



Powered by

Hosted on
(affiliated link)