Hello, Clara!
I have the same problem.
However I am running W2P by rocket with self-signed certificates. And yes, 
you can use a self-signed certificate locally or you can try to generate 
one with the certbot.
I have an article talking about it (in Portuguese) where I explain how to 
use Apache with certificates here 
<https://web2pymania.blogspot.com/2020/06/configurar-o-web2py-no-apache-e-ubuntu.html>
.
But regarding the cas_provider problem I am still the same.

Em sábado, 30 de maio de 2020 às 12:48:42 UTC-3, clara escreveu:

> Hello,
>
> I am using Web2Py with Python 3.7. I have 2 web2py applications one is the 
> CAS provider and the other is a CAS client.
> This works without problems with rocket server in development environment.
>
> Now, I need to run these apps under Apache / Windows operating system, I 
> have both apps in the applications folder. The server is already serving 
> other applications with a valid Let's Encrypt certificate.
>
> When I run the CAS Client application it tries to redirect to the CAS 
> Server application for authentication and then I get the SSL error:
> urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 
> certificate verify failed: unable to get local issuer certificate 
> (_ssl.c:1056)>
>
> What is the best solution to this? Since these requests go within the 
> local server, should I have a self-signed certificate to avoid the SSL 
> error?And if so, how do I register this certificate to have urllib handle 
> it? I have looked into certifi's PEM file. Do I need to edit this file?
>
> Alternatively, could I use the non-localhost link (internet link) and have 
> urllib validate using the Let's encrypt certificate in place? Is Let's 
> encrypt among certificate authorities for urrllib? or python SSL 
> environment? I think going internally should be a better solution though.
>
> I look forward to some guidance. Thank you,
>
> Clara
>
>
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/283c879f-b1aa-4e5a-a001-1c0f42eea7c8n%40googlegroups.com.

Reply via email to