[web2py] Re: SSL Error: bad handshake when use requests lib

2017-12-22 Thread killzane
Hi I try to use web2py console. and requests work well... but it can't work in my controller DaneW於 2017年12月22日星期五 UTC+8上午8時02分26秒寫道: > > I s

[web2py] Re: SSL Error: bad handshake when use requests lib

2017-12-21 Thread DaneW
I see that they are the same version and it is reasonably up to date. Presumably that is also the version used when you run a script within Web2py? If so then I'm afraid I don't have any further suggestions - sorry. I don't have a Facebook access token so I can't try it out - perhaps there is s

[web2py] Re: SSL Error: bad handshake when use requests lib

2017-12-21 Thread killzane
1. unubtu terminal OpenSSL 1.0.2g 1 Mar 2016 2. python >>> import ssl >>> print ssl.OPENSSL_VERSION OpenSSL 1.0.2g 1 Mar 2016 DaneW於 2017年12月21日星期四 UTC+8下午6時00分01秒寫道: > > I recently have the same problem with certain websites - it seems to be an > OpenSSL issue with their webserver config or

[web2py] Re: SSL Error: bad handshake when use requests lib

2017-12-21 Thread DaneW
I recently have the same problem with certain websites - it seems to be an OpenSSL issue with their webserver config or their certificates. Could you tell us what version of OpenSSL is used both circumstances? terminal> openssl version and Python> print ssl.OPENSSL_VERSION On Wednesday, 20 Dec

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-16 Thread Dave S
On Thursday, June 15, 2017 at 10:32:22 AM UTC-7, icodk wrote: > > Sorry for the late response > There is definitly a different if I use web2py shell source to send mail > or web2py.exe > It works fine with source and failes with web2py.exe > My python installation is 2.7.13 > As Massimo said

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-15 Thread icodk
With web2py.exe more complete screenshot C:\Dev\web\web2py_win\web2py_2_14_06>web2py.exe -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2017 Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Database drivers available: psycopg2, pymysql, imaplib, MySQLdb, sqlite3, p

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-15 Thread icodk
Sorry for the late response There is definitly a different if I use web2py shell source to send mail or web2py.exe It works fine with source and failes with web2py.exe My python installation is 2.7.13 here is my source execution : C:\Temp\web2py_src\web2py>python web2py.py -S welcome No handlers

[web2py] Re: SSL Error with Sparkpost api with web2py.exe

2017-06-11 Thread Massimo Di Pierro
First of all I recommend you configure sparkpost using web2py auth.mailer SMTP else you do not get the benefit of auth email logic. Also, I recommend you run web2py from source, not the windows binary. I will give you more control. If you find that running from source makes the problem go away,

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2016-06-28 Thread Yangbo Xu
Thanks for the reminder. This happens only in development environment which I dont have a proper cert. Proper certificates are installed for all production environment. On Wednesday, 29 June 2016 03:20:02 UTC+8, Niphlod wrote: > > before doing that, make sure that you understand the security i

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2016-06-28 Thread Niphlod
before doing that, make sure that you understand the security implications of trusting whatever certificate you get... On Tuesday, June 28, 2016 at 6:11:00 PM UTC+2, Yangbo Xu wrote: > > Hi Niphlod, > > I did face the certificate validation problem. It seems I need to dive a > bit deeply into g

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2016-06-28 Thread Yangbo Xu
Hi Niphlod, I did face the certificate validation problem. It seems I need to dive a bit deeply into gluon and change the source code which makes use of urllib? Just wonder, if there is better way to skip the certificate validation? (similar problem faced for gluon.tools.fetch, which doesn't ha

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2015-12-21 Thread Niphlod
this though poses a problem in the case someone wants to skip certificate validation. python in this case enforces a "sane default" but I wonder if we should revisit all the code to look for places where cert validation **could** be a problem On Monday, December 21, 2015 at 8:39:58 PM UTC+

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2015-12-21 Thread Tim Richardson
On Tuesday, 22 December 2015 00:19:34 UTC+11, Niphlod wrote: > > this is more of a python installation issue rather than a web2py one > yes, but here be very helpful people. Which you have just proved again :) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2015-12-21 Thread Tim Richardson
On Tuesday, 22 December 2015 00:22:26 UTC+11, Niphlod wrote: > > and probably due to https cert verification turned on > https://www.python.org/dev/peps/pep-0476/ . Are you using a valid cert ? > > > Your guess was remarkably precise. I just came back to report that replacing it with a rene

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2015-12-21 Thread Niphlod
and probably due to https cert verification turned on https://www.python.org/dev/peps/pep-0476/ . Are you using a valid cert ? On Monday, December 21, 2015 at 2:19:34 PM UTC+1, Niphlod wrote: > > this is more of a python installation issue rather than a web2py one > > On Monday, Decembe

[web2py] Re: SSL error with CAS after upgrade to 32 bit python 2.7.10 on Windows (ActiveState python)

2015-12-21 Thread Niphlod
this is more of a python installation issue rather than a web2py one On Monday, December 21, 2015 at 12:57:00 PM UTC+1, Tim Richardson wrote: > > Upgrading from python 2.7.8 to 2.7.10 causes me these errors with using > CAS. This is with web2py 2.12.3 and 2.13.1 > On Windows Server 2008 R2.

Re: [web2py] Re: SSL Error

2011-12-05 Thread António Ramos
Please a tip i created my certificates reading a tutorial for openssl and apache. What is the best way to create certificates for web2py? a simple tutorial? Thank you Em 2 de novembro de 2011 11:02, António Ramos escreveu: > Context: Windows > Did not tried yet using the source code but using 1

Re: [web2py] Re: SSL Error

2011-11-02 Thread António Ramos
Context: Windows Did not tried yet using the source code but using 1.98 i get the same errors but the server never crashes... 2011/10/27 Ross Peoples > I don't think so. I access my dev machine using the IP all the time. Can > you try using the source code version instead of the binary and see i

Re: [web2py] Re: SSL Error

2011-10-27 Thread Ross Peoples
I don't think so. I access my dev machine using the IP all the time. Can you try using the source code version instead of the binary and see if that makes a difference?

Re: [web2py] Re: SSL Error

2011-10-27 Thread António Ramos
Also the same problem if i move my app to 1.982 The certficate was issued to apps.cires.pt but i´m acessing my app using the ip and not the name Can this be problem? Em 27 de outubro de 2011 15:31, António Ramos escreveu: > I´m using web2py 1.99.2 for windows > > :( > > > 2011/10/27 Ross Peop

Re: [web2py] Re: SSL Error

2011-10-27 Thread António Ramos
I´m using web2py 1.99.2 for windows :( 2011/10/27 Ross Peoples > That is very odd. I have a production SSL site that I have been running for > months without an issue. Even my development server (which runs trunk, but > as of a week ago...haven't updated in a while) runs SSL only and it can run

[web2py] Re: SSL Error

2011-10-27 Thread Ross Peoples
That is very odd. I have a production SSL site that I have been running for months without an issue. Even my development server (which runs trunk, but as of a week ago...haven't updated in a while) runs SSL only and it can run for weeks at a time. I guess the usual questions apply: what version

[web2py] Re: SSL Error on windows [SOLVED]

2010-05-14 Thread mdipierro
true and there are security advantages to have two processes serve 80 and 443 respectively. Let's think about this some more. On May 14, 7:52 am, Timothy Farrell wrote: > The only question is: how do you want that to look? > > All web2py interfaces currently only take one IP and socket number.  I

Re: [web2py] Re: SSL Error on windows [SOLVED]

2010-05-14 Thread Timothy Farrell
The only question is: how do you want that to look? All web2py interfaces currently only take one IP and socket number. I don't think it's wise to assume that if someone wants HTTPS they automatically want HTTP as well (and pick the port for them). You decide how you want the Tk frontend, th

Re: [web2py] Re: SSL Error on windows [SOLVED] [SOLVED]

2010-05-13 Thread Miguel Lopes
On Thu, May 13, 2010 at 9:02 PM, Timothy Farrell wrote: > While Rocket supports listening on multiple sockets, web2py does not. You > will need to run two separate instances of web2py (one for SSL, one > unencrypted) to do what you are asking. > > -tim > > Txs for the reply. Always nice to know

[web2py] Re: SSL Error on windows [SOLVED]

2010-05-13 Thread mdipierro
Since rocket does it, is there any way we can add support for 80+443 with one rocket and one web2py instance? On May 13, 3:02 pm, Timothy Farrell wrote: > While Rocket supports listening on multiple sockets, web2py does not.   > You will need to run two separate instances of web2py (one for SSL,

Re: [web2py] Re: SSL Error on windows [SOLVED]

2010-05-13 Thread Timothy Farrell
While Rocket supports listening on multiple sockets, web2py does not. You will need to run two separate instances of web2py (one for SSL, one unencrypted) to do what you are asking. -tim On 5/13/2010 1:40 PM, Miguel Lopes wrote: On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell

Re: [web2py] Re: SSL Error on windows [SOLVED]

2010-05-13 Thread Miguel Lopes
On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell wrote: > This is the error that Jon Lundell's guys found already. Note that it's > trying to connect to port 8000 as HTTP. Connect as HTTPS and it should > work. > > Also try upgrading to trunk, that should issue a "400 Bad Request". > > -tim > >

Re: [web2py] Re: SSL Error on windows

2010-05-12 Thread Timothy Farrell
This is the error that Jon Lundell's guys found already. Note that it's trying to connect to port 8000 as HTTP. Connect as HTTPS and it should work. Also try upgrading to trunk, that should issue a "400 Bad Request". -tim On 5/12/2010 1:32 PM, mdipierro wrote: yes please On May 12, 1:16

[web2py] Re: SSL Error on windows

2010-05-12 Thread mdipierro
yes please On May 12, 1:16 pm, Miguel Lopes wrote: > On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > > Do you have the win32 extension for Python installed? > >http://sourceforge.net/projects/pywin32/ > > > On May 11, 3:33 pm, Miguel Lopes wrote: > >  > On Tue, May 11, 2010 at 7:54 PM, mdi

Re: [web2py] Re: SSL Error on windows

2010-05-12 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > On May 11, 3:33 pm, Miguel Lopes wrote: > > On Tue, May 11, 2010 at 7:54 PM, mdipierro > wrote: > > > This is concerns me more: > > > > > WAR

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > No. Maybe that's he problem. Tomorrow I'll re-test the thing with pywin32 installed. Miguel

[web2py] Re: SSL Error on windows

2010-05-11 Thread mr.freeze
Do you have the win32 extension for Python installed? http://sourceforge.net/projects/pywin32/ On May 11, 3:33 pm, Miguel Lopes wrote: > On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote: > > This is concerns me more: > > > WARNING:root:WEB2PY CRON: Disabled because no file locking > > > what os

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote: > This is concerns me more: > > WARNING:root:WEB2PY CRON: Disabled because no file locking > > what os are you using? > > Windows XP I can check the flavour and service pack tomorrow.

[web2py] Re: SSL Error on windows

2010-05-11 Thread mdipierro
This is concerns me more: WARNING:root:WEB2PY CRON: Disabled because no file locking what os are you using? On May 11, 1:28 pm, Miguel Lopes wrote: > I followed thewww.web2py.com/AlterEgo/default/show/140in order to generate > a self-certified ssl key using OpenSSL for > windows(http://www.slp