I’m running on my server, the “apt-get update” command and I get the following error:
Err:7 MongoDB Repositories bionic/mongodb-org/4.4 Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 165.225.80.34 80]
The server has Ubuntu 18.04 on it. But no matter what I try, I cannot get past this error. I’ve pinged the IP address to make sure that my server can see the server, which it can.
The content of the list file in question is as follows:
root@EU001:/etc/apt/sources.list.d# more mongodb-org-4.4.list
deb [ arch=amd64,arm64 ] MongoDB Repositories bionic/mongodb-org/4.4 multiverse
If I download the server-4.4.asc and import it, makes no difference to the error I’m seeing.
root@EU002:/home/james# sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20230311ubuntu0.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
As well as running:
root@EU002:/home/james# update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
While the IP’s may differ from where I am in Canada I’d expect this to still be cloudfront addresses.
DNS Lookup on repo.mongodb.org
dig repo.mongodb.org
;; ANSWER SECTION:
repo.mongodb.org. 15 IN CNAME org.repo.release.build.10gen.cc.
org.repo.release.build.10gen.cc. 60 IN A 18.67.17.79
org.repo.release.build.10gen.cc. 60 IN A 18.67.17.21
org.repo.release.build.10gen.cc. 60 IN A 18.67.17.32
org.repo.release.build.10gen.cc. 60 IN A 18.67.17.30
Reverse lookup on repo.mongodb.org addresses
for i in 18.67.17.{21,30,32,79}; do dig +short -x ${i}; done
server-18-67-17-21.yto50.r.cloudfront.net.
server-18-67-17-30.yto50.r.cloudfront.net.
server-18-67-17-32.yto50.r.cloudfront.net.
server-18-67-17-79.yto50.r.cloudfront.net.