• 921 views
  • 0 comments
  • 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. It 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) where in your file storage on PythonAnywhere they can find the 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

loading...

Sources / Reference

" Pythonanywhere.com - SSLOwnDomains"

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


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)