AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
You can start web2py with ` python web2py.py -c server.crt -k server.key ` then it will serve pages via https. But how do you get the server.crt and server.key files? You need to have OpenSSL (or equivalent software) installed. Then you do the following: 1. generate your private key: ` openssl genrsa -out server.key 2048 ` 2. create a certificate ` openssl req -new -key server.key -out server.csr ` the software will ask you a few questions during the key generation, just answer them 3. Now you need to get your certificated "signed". You can either pay some certification authority to do this, or you can self-sign your key: ` openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt ` This will make your key valid for 365 days - change the value after "-days" if you need. Enjoy!
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.