in fact, I can connect via CLI with just adding "--ssl" to the standard 
client. 

Any way to achieve that with web2py DAL ?

On Sunday, October 11, 2020 at 1:47:16 PM UTC-5 Vlad wrote:

> web2py 2.11.2 
>
> Ok so I only need the CA to be validated. 
>
> Providing the path to the CA file like:
>
> DAL("mysql://remoteuser:password@remotedbserver/database", 
> driver_args={'ssl':{'ca':'path/to/ca/file'}})
>
> I get
> "/path/to/web2py/gluon/contrib/pymysql/connections.py", line 822, in 
> _send_authentication self.socket = ssl.wrap_self.socketet(self.socket, 
> keyfile=self.key, AttributeError: 'module' object has no attribute 
> 'wrap_self'
>
> I know this was asked before, but there was no comment given on that, 
> other than to work around it via SSH tunnel.
>
> Not an alternative in my case, long story.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/03d179b9-79a6-4ccd-80ed-0aa6597ddad0n%40googlegroups.com.

Reply via email to