Web Py SSL

I assume you have a Mac computer and web.py is already installed. I also assume openssl is installed. Follow the steps below to enable SSL on your web server.

    1. openssl genrsa -des3 -out server.key 1024
    2. openssl req -new -key server.key -out server.csr
    3. openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
    4. In your python server code, copy the following

    1. Point to your server for example: http://127.0.0.1:9999 This should not work
    2. Now try : https://127.0.0.1:9999 This should work
    3. If the server keeps nagging about the password. You can do:

Tags:,

Add a Comment

Your email address will not be published. Required fields are marked *