Jump to content

Wasn't really sure where to post this.

 

I have a nextcloud server setup using nginx and php-fpm. Everything works fine.

I have a collabora server setup using a docker image and configured with nginx.

 

I am trying to get nextcloud to connect to collabora. The only information nextcloud gives me is "Could not establish connection to the Collabora Online server", an Alternate wobi client gives "GuzzleHttp\\Exception\\RequestException","Message":"cURL error 60: SSL certificate problem: self signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"

 

So i turned to curl.

curl -v domain from the host gives

SSL certificate problem: self signed certificate

 

curl -v domain from a remote pc successfully connects however.

 

Both systems are Arch Linux and up to date. Certficate is generated using LetsEncrypt Certbot. nginx sites load fine with SSL. curl on the host and can successfully connect to outside sites just not internal.

 

What should I be looking at to try to resolve this?

Link to comment
https://linustechtips.com/topic/1243811-libcurl-ssl-issue/
Share on other sites

Link to post
Share on other sites

For future reference. If anyone else has a similar issue.

I had to add any domains I Was trying to access with libcurl to  /etc/hosts

127.0.0.1   subdomain.domain.tld

 

If anyone has a error related to unable to verify SSL from within a collabora docker container,  behind a nginx proxy with ssl. The docker needs to be started with host parameters for the domains pointing to the local ip address of the server for both your cloud and office subdomains, assuming your nginx instance and nextcloud instance are hosted on the same network.

Quote

docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=cloud\\.domain\\.tld” --restart always --cap-add MKNOD --add-host=cloud.domain.tld:server_local_ip --add-host=office.domain.tld:server_local_ip collabora/code

 

Link to comment
https://linustechtips.com/topic/1243811-libcurl-ssl-issue/#findComment-14001670
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×