Score:0

wget is not able to get the correct ssl certifiicate expiration date

bt flag

When I execute this

wget -O /root/installer.php https://www.grscripts.com/install/installer.deluxe

I receive this error

ERROR: cannot verify https://www.grscripts.com's/ certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’:   Issued certificate has expired.

but it's not true , indeed http://www.grscripts.com's/ certificate is ok and will expire on Feb 2022. Why wget is failing to get the correct certificate and how to fix it ?

Note that I know that I can skip the problem with --no-check-certificate , I would know why wget is reporting that the certificate is expired while it's not expired.

in flag
Are you checking this on the same machine you ran wget on? If not, did you check the date on the machine?
bt flag
different machines , the date is correct .
in flag
run `wget -S` and check if the correct IP is resolved.
bt flag
ip is correct , 94.130.76.170
jp flag
Dom
In the error message, why there is no "S" on the URL, only http ?
bt flag
checked , this is error returned "cannot verify https://www.grscripts.com's/ certificate"
Score:1
jp flag

If you didn't update your system and root certificates then it is possible that your system won't be able to recognize Let's Encrypt certificates. See list Let's Encrypt compatibility list

bt flag
it's a fresh Centos 7 installation. BTW how to update "root certificates" ?
jp flag
You need to have the latest `ca-certificates` package.
bt flag
yum reinstall ca-certificates , fixed the problem thank you are a genius
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.