Content
Allow openproject to accept or ignore self-signed certificate while connecting to Nextcloud storage
Added by Михаил Кулаков about 2 years ago
I have Nextcloud and Openproject installed and working in local network with https. So I'm using self-signed certificates issued by using local CA certificate, which installed as trusted root certificate in system (Debian 11). Following this guide: https://www.openproject.org/docs/system-admin-guide/integrations/nextcloud/ I performed 1 step in nextcloud successfully, but stuck in second step "2. Create a Nextcloud file storage in your OpenProject instance": when I'm trying to save configuration it shows that there is a problem "cannot connect host". In logs I see such info:
"Nextcloud server invalid host="https://nextcloud.example.com" error_type=cannot_be_connected_to: exception OpenSSL::SSL::SSLError: SSL_connect returned 1 errno=0 peeraddr=192.168.0.123:443 state=error: certificate verify failed (self signed certificate)"
So, how to force openproject to accept this certificate or ignore verification?
Replies (3)
Please could you explain why you cannot create a signed certificate? lets encrypt is free to use for everyone.
Please do not work against security.
Browsers also do not allow self signed certs sooner or later... better to fulfill the requirements and create a signed certificate.
I have the same problem. It is very necessary to disable ignoring the self-signed certificate.
Because there is no lets encrypt or similar on the local network (without the Internet) .
Same problem here. My NC uses lets-encrypt:
There https://community.openproject.org/topics/17124?r=17124 is a similar problem. The solution there did not work for my problem, but this did the job:
https://gist.github.com/Lukas238/a27956da42eae5d082a04fe0f493a9e0