[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-21 Thread José Eloy
SOLVED:

Niphlod:
I copied the web2py folder inside C:\inetpub\wwwroot

And then I created a new Web site, with main folder in 
C:\inetpub\wwwroot\web2py with https and port 443 and with a SSL 
certificate auto signed and vualá! my site is running.

Thanks for the help.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread Richard Vézina
Don't use self-signed certificate, walk the extra mile of creating your own
Certificate Authority, which will be self signed, then sign you
certificate... That way you will get rid of all browser warning... You can
then push by GPO a pk12 file so your user don't even have to handle the
certificate by them self... You will only have Firefox that use it own
certificate store that will complain until you add manually the certificate
:( which can be scripted...

Richard

On Wed, Jan 20, 2016 at 12:45 PM, José Eloy  wrote:

> Then, How I should run web2py?
>
> python web2py.py -a 'yourpassword' -i IP
>
> without port?
>
>
> Regards
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread Niphlod
if you followed that guide, python will be started automatically by IIS. 
That's part of the beauty of it.

On Wednesday, January 20, 2016 at 6:45:55 PM UTC+1, José Eloy wrote:
>
> Then, How I should run web2py? 
>
> python web2py.py -a 'yourpassword' -i IP
>
> without port?
>
>
> Regards
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread José Eloy
Then, How I should run web2py? 

python web2py.py -a 'yourpassword' -i IP

without port?


Regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread José Eloy
Niphlod: You are right! IIS is now serving my web2py pages! Thanks!

A question: If I create a directory under wwwroot (let's say web2pyapps) 
and move my web2py app, I readed the manual and say this:

   - move the code to a subfolder named web2pyapps
   - create a routes.py file with routers = dict(BASE=dict(path_prefix = 
   "web2pyapps")) in it
   - inside the IIS Manager, locate the web2pyapps folder, right click on 
   it and select "Convert to Application"

But if I run my app I get error 500. Is maybe an error with the web.config 
file? I understand this file must is in the same folder that web2py.py

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread José Eloy
Richard:

Could you show me how to generate my own Certificate Authority and my own 
certificate?

Regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-20 Thread Niphlod
if you followed the manual 
(http://web2py.com/books/default/chapter/29/13/deployment-recipes#IIS) for 
deploying web2py behind iis, your app is served by IIS directly on 
whichever port IIS is configured to listen on. 
If that port is set to be ssl protected (usually the *:443 binding) then 
you have the standard setup for SSL.

On Wednesday, January 20, 2016 at 1:50:22 AM UTC+1, José Eloy wrote:
>
> Thanks again for the help.
>
> I could create my own certificate, but I have a dude: The standard port 
> for SSL is 443 and my application runs using the port 8001, How I have to 
> configure the port in IIS and web2py? How I have to lauch web2py?
>
> Regards.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-19 Thread José Eloy
Thanks Niphlod for your answer, sorry by my delay in answering. 

I was trying running my app using the Rocket Web Server and https. I 
created the cerfificate as you indicate me and all is working well, but I 
noted the app is slow returning the html views.

I've reading that is better to use web2py behind IIS or Apache to serve web 
pages. I'm using Windows Server 2008 and IIS 7.5. Now I've deploying my 
application in Windows and IIS reading the instructions of cap 9 of manual. 
The app is working well and better, the html pages are loading faster, but 
How can I create a certificate SSL autosigned using IIS and Web2py?

Regards.

My English is not very well, I hope you can understand me.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-19 Thread Niphlod
the web is riddled with examples. (un)fortunately IIS has a much wider 
adoption than web2py :-P

http://weblogs.asp.net/scottgu/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates

On Tuesday, January 19, 2016 at 9:44:57 PM UTC+1, José Eloy wrote:
>
> Thanks Niphlod for your answer, sorry by my delay in answering. 
>
> I was trying running my app using the Rocket Web Server and https. I 
> created the cerfificate as you indicate me and all is working well, but I 
> noted the app is slow returning the html views.
>
> I've reading that is better to use web2py behind IIS or Apache to serve 
> web pages. I'm using Windows Server 2008 and IIS 7.5. Now I've deploying my 
> application in Windows and IIS reading the instructions of cap 9 of manual. 
> The app is working well and better, the html pages are loading faster, but 
> How can I create a certificate SSL autosigned using IIS and Web2py?
>
> Regards.
>
> My English is not very well, I hope you can understand me.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-19 Thread José Eloy
Thanks again for the help.

I coud create my own certificate, but I have a dude: The standard port for 
SSL is 443 and my application runs using the port 8001, How I have to 
configure the port in IIS and web2py?

Regards.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread José Eloy
Thanks Niphlod for your answer.

I'm very newbie creating SSL certificates. How can create my first 
certificate using OpenSSL in PEM format?

Thanks in advanced

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread Niphlod
private key
openssl.exe genrsa 1024 >> pkey.key
self-signed cert
openssl.exe req -new -x509 -nodes -sha1 -days 1825 -key pkey.key > cert.cer

or, all in one line

openssl.exe req -x509 -newkey rsa:1024 -keyout pkey.key -out cert.cer -days 
1825


On Friday, January 8, 2016 at 8:19:13 PM UTC+1, José Eloy wrote:
>
> Thanks Niphlod for your answer.
>
> I'm very newbie creating SSL certificates. How can create my first 
> certificate using OpenSSL in PEM format?
>
> Thanks in advanced
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread Niphlod
if it's an internal app, don't use http . if you need https, you'd better 
explore a deployment behind iis. rocket can serve https, but you can't tune 
which algorithm it uses, and by default it uses a weak one.
if you still want to go down that road (that IMHO is useless) you need to 
create a self-signed certificate (PEM format) and then use 

python web2py.py -c path_to_certificate -k path_to_key -p 443 

-c SSL_CERTIFICATE, --ssl_certificate=SSL_CERTIFICATE
file that contains ssl certificate
  -k SSL_PRIVATE_KEY, --ssl_private_key=SSL_PRIVATE_KEY
file that contains ssl private key


On Friday, January 8, 2016 at 2:04:33 AM UTC+1, José Eloy wrote:
>
>
> Hi there!
>
> How I can deploy a web2py app using Windows and SSL? Is it OK if I use the 
> rocket web server included in Web2py? I'm thinking in use Open SSL because 
> I'm not using the IIS web server, also I'm thinking in create a self signed 
> certificated, the app is running in a intranet.
>
> I´ve downloaded and installed OpenSSL (using a binary from 
> http://slproweb.com/products/Win32OpenSSL.html). I have the web2py source 
> folder, and my app is working correctly using http. What else do I need 
> to start?
>
> Thanks ind advanced.
> P. D. (Sorry for my bad english, I hope you can understandme)
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.