rkaczorek / astroberry-server

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment
GNU General Public License v3.0
274 stars 19 forks source link

Certificate error on the website #222

Open N7Normandy opened 1 year ago

N7Normandy commented 1 year ago

Hello everyone. There is a certificate error on the website that expired on 08/31/23. As a result, the repo can no longer be updated. Untrustworthy. Is the repo no longer available? Thanks in advance :)

Error: Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 46.105.204.23 443]

CreasaBE commented 1 year ago

Yep same issue here when trying to set up indi-allsky as it needs packages from astroberry. Cert has indeed expired and needs to be renewed again. It's a LetsEncrypt certificate, so it should've been done automaticaly, but apparently it has not.

bartczar commented 1 year ago

You can add /etc/apt/apt.conf.d/99astroberry file with the following content: Acquire::https::www.astroberry.io::Verify-Peer "false"; Acquire::https::www.astroberry.io::Verify-Host "false";

To get a repo key from the astroberry.io you need to use this to ignore cert issue: "wget --no-check-certificate -O - https://www.astroberry.io/repo/key"

N7Normandy commented 1 year ago

Yeah it works . Thanks a lot.

CreasaBE commented 1 year ago

You can add /etc/apt/apt.conf.d/99astroberry file with the following content: Acquire::https::www.astroberry.io::Verify-Peer "false"; Acquire::https::www.astroberry.io::Verify-Host "false";

To get a repo key from the astroberry.io you need to use this to ignore cert issue: "wget --no-check-certificate -O - https://www.astroberry.io/repo/key"

Yes although that will work, it is not a solution to the problem.

the website itself is untrusted too because of the certificate expiring and a lot of browsers will complain and firewalls with SSL Decryption enabled will deny access

rkaczorek commented 1 year ago

HI guys. This is error on the server side. For some unknown reason SSL certificates did not renewed recently. I'm gonna manually fix this right away.

guilleortas commented 2 months ago

It's still happening for me on a fresh install downloaded and flashed today

rkaczorek commented 2 months ago

Please remember that Raspberry Pi is not (by default) equipped with real time clock, which keeps system time between reboots. It gets current time from the Internet and it takes some time, especially in case of fresh install. Now, if you try to run update too quickly after system boot (and your system time has not been updated yet ), you will always get certificate error on any software repository. It is a system feature, not a bug. If it happens, you can check your time running date command in terminal window, wait a few seconds, run the command again until it shows proper date. Only then you can run system updates.