You are not logged in.

#1 2020-08-31 04:37:34

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Certificate Verification Problems with openssl and ca-certificates

I have Arch installed on a chromebook and after a recent reboot I attempted to update with pacman, but the following occurred:

$ sudo pacman -Syu
:: Synchronizing package databases
error: failed retrieving file 'core.db' from mirror.osbeck.com : SSL certificate problem: certificate has expired
error: failed retrieving file 'core.db' from mirror.dc02.hackingand.coffee : SSL certificate problem: certificate has expired
error: failed retrieving file 'core.db' from archmirror01.octyl.net : SSL certificate problem: certificate has expired

and so on for each mirror. I tried enabling all mirrors to see if any would work, but each mirror returned the same certificate error.
When I opened my browser to find a solution, every web query returned an SSL certificate expired error, so I've determined that
the problem is definitely the certificate verification. I was able to perform a full system update by modifying the following in
/etc/pacman.conf

XferCommand = /usr/bin/curl -k -L -C - -f -o %o %u
SigLevel = Never

Upon reboot, the problems persist. I tested my connection by pinging the mirrors:

$ ping mirror.osbeck.com (104.25.95.5) 56(84) bytes of data.
64 bytes from 104.25.95.5: icmp_seq=1 ttl=55 time=14.8ms

Then I attempted certificate verification with openssl. When connecting through port 80, the verification
returned 0, but on attempting connection through 443, the following occurs:

$ openssl s_client -connect 104.25.95.5:443
CONNECTED(00000003)
Can't use SSL_get_servername
depth=2 C = US, 0 = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
verify error:num=10:certificate has expired

followed by similar failures and a more verbose message returning the same error code. When I run the exact
same command on my desktop, which is connected to the exact same LAN, verification always succeeds with
return code 1. I'm open to any fix, even disabling verification completely because I really only need my laptop
to be able to push/pull from git repos, update, and use ssh.

Last edited by Nagefire (2020-08-31 04:38:25)

Offline

#2 2020-08-31 04:41:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Certificate Verification Problems with openssl and ca-certificates

What's the output of timedatectl?

Offline

#3 2020-08-31 14:15:26

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Re: Certificate Verification Problems with openssl and ca-certificates

Thank you for the quick reply, output:

$ timedatectl status
Failed to query server: Failed to read RTC: Invalid argument

I attempted using time synchronization, which returns a success but the system time remains
the same even after a hard reboot. My timezone is America/Denver or US/Mountain and the
output of date is:

$ date
Thu Sep 23 08:20:20 PM MDT 2094

So the problem is obviously something with timedatectl.

Offline

#4 2020-08-31 14:21:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Certificate Verification Problems with openssl and ca-certificates

Not something with timedatectl, something with your system time and your RTC. What date is set when you go into the system firmware settings?

Offline

#5 2020-08-31 14:24:16

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: Certificate Verification Problems with openssl and ca-certificates

Did you actually look at the 'date' output? There is absolutely no way that time synchronization, which works on sub-second basis, can help when you are 74 years set in the future. Read the section on resetting things with Removing adjtime and manually resetting.

Offline

#6 2020-08-31 14:38:17

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Re: Certificate Verification Problems with openssl and ca-certificates

I'm not sure how to check my firmware because I had to flash Seabios to the chromebook and
I can't make it do much outside of running grub, but thanks to you both I was
able to find some information at  https://wiki.archlinux.org/index.php/Sy … local_time
so I followed the advice, installed ntp, and ran

$ ntpd -qg

The time was manually set to the correct value and now everything works as normal. I had obtained this laptop
in Texas and installed arch on it while there, so it's likely that I had the time zone set to America/Chicago and forgot
to switch it to US/Mountain after returning to my home. I'm not sure if the problem will persist, but it seems to be fine now

Last edited by Nagefire (2020-08-31 14:39:06)

Offline

#7 2020-08-31 14:56:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Certificate Verification Problems with openssl and ca-certificates

Nagefire wrote:

I had obtained this laptop
in Texas and installed arch on it while there, so it's likely that I had the time zone set to America/Chicago and forgot
to switch it to US/Mountain after returning to my home. I'm not sure if the problem will persist, but it seems to be fine now

And just how do you think setting the timezone to America/Chicago sets the time to 74 years into the future?

Offline

#8 2020-08-31 17:21:54

Nagefire
Member
Registered: 2016-03-21
Posts: 11

Re: Certificate Verification Problems with openssl and ca-certificates

I don't know, but I what did happen was I set the timezone and then geographically relocated to another time zone.
My time and date were correct before I moved, so the issue probably had something to do with having the wrong
time zone for my geographical area set.

Offline

#9 2020-08-31 17:26:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Certificate Verification Problems with openssl and ca-certificates

no, it didn't.

Offline

Board footer

Powered by FluxBB