HI, I’m on Pro 6.3.13
I tried activated CAS authentication as in the manual
But after a nice redirect from CAS server i get an error on seahub.
Seahub.log traces
2019-03-25 21:38:37,801 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /accounts/cas-login/
Traceback (most recent call last):
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/django/views/decorators/http.py", line 40, in inner
return func(request, *args, **kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub-extra/seahub_extra/django_cas_ng/views.py", line 81, in login
request=request)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/seahub/auth/__init__.py", line 56, in authenticate
user = backend.authenticate(**credentials)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub-extra/seahub_extra/django_cas_ng/backends.py", line 30, in authenticate
username, attributes, pgtiou = client.verify_ticket(ticket)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/cas.py", line 158, in verify_ticket
response = self.get_verification_response(ticket)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/cas.py", line 169, in get_verification_response
page = requests.get(base_url, params=params, verify=self.verify_server_ca)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/cc/seafile/seafile-pro-server-6.3.13/seahub/thirdpart/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='CAS-SERVER.DOMAIN.FR', port=443): Max retries exceeded with url: /cas/serviceValidate?ticket=ST-707dd6f531a799e289856f80e906172ad2291e79cd1ea0a1cb3f799c29aa4492&service=http%3A%2F%2FpSEAFILE-SERVER.DOMAIN.FR%2Faccounts%2Fcas-login%2F%3Fnext%3D%252F (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
2019-03-25 21:38:38,038 [WARNING] django.request:152 get_response Not Found: /favicon.ico
cc@cchum-epcc-seaf-dev:~/seafile/logs$
Did anyone got this error ?
Do I need to install the CAS certificate on the Apache Vhost Proxy in front of Seafile ?
Any help appreciated
Regards