Had to edit number 3 On Friday, October 5, 2012 6:42:31 PM UTC-5, Bill Thayer wrote: > > Two month's later but I hope this info is still relevant since I had to do > this today after downloading today's trunk version. > > 1) Review My old post about generating the > certs<https://groups.google.com/forum/?hl=en&fromgroups=#!searchin/web2py/server.crt/web2py/MN2hordmg18/e5hDkTmbHFcJ> > 2) Copy the certs to C:\web2py > 3) C:\web2py\options.py looks like: > #!/usr/bin/python > # -*- coding: utf-8 -*- > > # when web2py is run as a windows service (web2py.exe -W) > # it does not load the command line options but it > # expects to find conifguration settings in a file called > # > # web2py/options.py > # > # this file is an example for options.py > > import socket > import os > > ip = '0.0.0.0' > port = 80 > interfaces=[('0.0.0.0',80),('0.0.0.0',440,'server.key','server.crt')] > password = '<recycle>' # ## <recycle> means use the previous password > pid_filename = 'httpserver.pid' > log_filename = 'httpserver.log' > profiler_filename = None > ssl_certificate = 'server.crt' # ## path to certificate file > ssl_private_key = 'server.key' # ## path to private key file > #numthreads = 50 # ## deprecated; remove > minthreads = None > maxthreads = None > server_name = socket.gethostname() > request_queue_size = 100 > timeout = 120 > shutdown_timeout = 5 > folder = os.getcwd() > extcron = None > nocron = None > > # After creating "options.py" in the web2py installation folder, you can > # install web2py as a service with: > # > # 1. python web2py.py -W install > # > # and start/stop the service with: > # > # 1. python web2py.py -W start > # 2. python web2py.py -W stop > Maybe it helps or I am just writing this here for when I need it again! > > -Bill > > > On Thursday, August 2, 2012 4:30:50 AM UTC-5, Amit wrote: >> >> Hi, >> I have installed web2py 1.99.7 stable version,python2.7.2, >> pyOpenSSL-0.13.winxp32-py2.7,M2Crypto-0.20.2-py2.7.egg-info and >> pycurl-7.19.0.win32-py2.7 in my pc. When i start Rocket server it is >> showing warning message *"WARNING:web2py:unable to open SSL certificate. >> SSL is OFF "*. >> >> does PyOpenSSL-0.13 not supported by Web2py 1.99.7 version OR is there >> any other problem? >> >> Can anyone please help me out how to resolve this issue? >> >> Regards, >> Amit >> >
--

