owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

update failed more than 50 times: SSL Certificate is invalid #966

Closed cbrace closed 8 years ago

cbrace commented 8 years ago

Hello, A number of the feeds I have subscribed to are now banded in orange and the mouseover displays the error message above. As a result, they are no longer updated. Among the feeds affected are various hosted by Google and owncloud.org itself (see attached screencap). Please let me know what additional information I can supply to help solve this issue.

owncloud-news-20160408

System Information

BernhardPosselt commented 8 years ago

Well, it's like you said, the ssl cert is invalid which could also mean that your certs are out of date. Nothing I can do here

BernhardPosselt commented 8 years ago

Could also be some sort of MITM.

BernhardPosselt commented 8 years ago

Your distro?

BernhardPosselt commented 8 years ago

Btw, here's the cases when this can happen:

cbrace commented 8 years ago

My site is hosted on FreeBSD 10.3. No issue with my certs, as far as I know. Check yourself: https://cbrace.nl

BernhardPosselt commented 8 years ago

Here's the explanations: https://curl.haxx.se/libcurl/c/libcurl-errors.html

BernhardPosselt commented 8 years ago

Ok, created a PR to get the curl error code: https://github.com/fguillot/picoFeed/pull/263/files which will let us debug this issue in a better fashion.

BernhardPosselt commented 8 years ago

BTW, my first guess would be that your FreeBSD PHP/openssl package does not support the required SSL ciphers.

cbrace commented 8 years ago

I'm now seeing this: I add this feed: https://gianalytics.org/xfeed Immediate error msg: screenshot from 2016-04-09 21 24 57

Just as a test: $ curl https://gianalytics.org/xfeed/ curl: (77) error setting certificate verify locations: CAfile: /usr/local/share/certs/ca-root-nss.crt CApath: none $ pkg info ca_root_nss ca_root_nss-3.22.2 Name : ca_root_nss Version : 3.22.2 Installed on : Fri Mar 4 18:32:19 2016 CET ... Does this tell you anything?

cbrace commented 8 years ago

It doesn't seem to a permissions thing:

drwxr-xr-x 2 root wheel 512 Mar 4 18:32 certs

BernhardPosselt commented 8 years ago

Quick google gives me this: http://stackoverflow.com/questions/3160909/how-do-i-deal-with-certificates-using-curl-while-trying-to-access-an-https-url

BernhardPosselt commented 8 years ago

No idea how to solve this on freebsd

cbrace commented 8 years ago

Hold on, I think this IS a permissions thing.

`colin@galatea ~ $ ls -l /usr/local/share/certs/ca-root-nss.crt -rw------- 1 root wheel 900648 Mar 4 18:32 /usr/local/share/certs/ca-root-nss.crt

colin@galatea ~ $ sudo chmod 644 /usr/local/share/certs/ca-root-nss.crt

colin@galatea ~ $ ls -l /usr/local/share/certs/ca-root-nss.crt

-rw-r--r-- 1 root wheel 900648 Mar 4 18:32 /usr/local/share/certs/ca-root-nss.crt` And now curl:

$ curl -l https://gianalytics.org/xfeed/ <?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> ... ...

OK, now I can add that feed in News.

Refreshed News. Good, now all the orange bands are gone.

I think this is a packaging error recently introduced in* ports/ca_root_nss* and I will take it up with the FreeBSD ports packager.

Many thanks for your help.

BernhardPosselt commented 8 years ago

Ok, great that this could be fixed :)

cbrace commented 8 years ago

I'm asking about this here: https://forums.freebsd.org/threads/55804/

cbrace commented 8 years ago

Will post a follow up, if possible.