Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

emerge: WARNING:urllib3.connection:Certificate did not match

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Eggplants
n00b
n00b
Posts: 22
Joined: Sat Oct 22, 2011 8:26 pm

emerge: WARNING:urllib3.connection:Certificate did not match

  • Quote

Post by Eggplants » Fri Feb 03, 2023 5:44 am

I'm seeing this when I do an emerge --sync:

Code: Select all

>>> Syncing repository 'gentoo' into '/usr/portage'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...WARNING:urllib3.connection:Certificate did not match expected hostname: gentoo.org. Certificate: {'subject': ((('countryName', 'US'),), (('stateOrProvinceName', 'California'),), (('localityName', 'San Francisco'),), (('organizationName', 'Fastly, Inc.'),), (('commonName', 'default.ssl.fastly.net'),)), 'issuer': ((('countryName', 'BE'),), (('organizationName', 'GlobalSign nv-sa'),), (('commonName', 'GlobalSign RSA OV SSL CA 2018'),)), 'version': 3, 'serialNumber': '729791010D5B03E97FD14F53', 'notBefore': 'Nov 18 16:26:16 2022 GMT', 'notAfter': 'Dec 20 16:26:15 2023 GMT', 'subjectAltName': (('DNS', 'default.ssl.fastly.net'), ('DNS', 'fastly.com'), ('DNS', '*.a.ssl.fastly.net'), ('DNS', '*.hosts.fastly.net'), ('DNS', '*.global.ssl.fastly.net'), ('DNS', '*.fastly.com'), ('DNS', 'a.ssl.fastly.net'), ('DNS', 'purge.fastly.net'), ('DNS', 'mirrors.fastly.net'), ('DNS', 'control.fastly.net'), ('DNS', 'tools.fastly.net')), 'OCSP': ('http://ocsp.globalsign.com/gsrsaovsslca2018',), 'caIssuers': ('http://secure.globalsign.com/cacert/gsrsaovsslca2018.crt',), 'crlDistributionPoints': ('http://crl.globalsign.com/gsrsaovsslca2018.crl',)}
Anyone know what's going on? Is it safe to proceed with updates?
Top
greyhare
n00b
n00b
Posts: 7
Joined: Thu Jun 05, 2014 5:04 pm

  • Quote

Post by greyhare » Fri Feb 03, 2023 6:36 am

Getting the same thing here for a couple days. It looks like the mirror doesn’t have Gentoo’s certificate, so the hosting provider is substituting their own, but I can’t be sure.
Top
soundrolf
Apprentice
Apprentice
Posts: 158
Joined: Thu Sep 08, 2016 3:57 pm
Location: Cologne / Germany

  • Quote

Post by soundrolf » Fri Feb 03, 2023 10:33 am

Same result today

Code: Select all

* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...WARNING:urllib3.connection:Certificate did not match expected hostname: gentoo.org. Certificate: {'subject': ((('countryName', 'US'),), (('stateOrProvinceName', 'California'),), (('localityName', 'San Francisco'),), (('organizationName', 'Fastly, Inc.'),), (('commonName', 'default.ssl.fastly.net'),)), 'issuer': ((('countryName', 'BE'),), (('organizationName', 'GlobalSign nv-sa'),), (('commonName', 'GlobalSign RSA OV SSL CA 2018'),)), 'version': 3, 'serialNumber': '729791010D5B03E97FD14F53', 'notBefore': 'Nov 18 16:26:16 2022 GMT', 'notAfter': 'Dec 20 16:26:15 2023 GMT', 'subjectAltName': (('DNS', 'default.ssl.fastly.net'), ('DNS', 'fastly.com'), ('DNS', '*.a.ssl.fastly.net'), ('DNS', '*.hosts.fastly.net'), ('DNS', '*.global.ssl.fastly.net'), ('DNS', '*.fastly.com'), ('DNS', 'a.ssl.fastly.net'), ('DNS', 'purge.fastly.net'), ('DNS', 'mirrors.fastly.net'), ('DNS', 'control.fastly.net'), ('DNS', 'tools.fastly.net')), 'OCSP': ('http://ocsp.globalsign.com/gsrsaovsslca2018',), 'caIssuers': ('http://secure.globalsign.com/cacert/gsrsaovsslca2018.crt',), 'crlDistributionPoints': ('http://crl.globalsign.com/gsrsaovsslca2018.crl',)}
                                                              [ !! ]
Regards
soundrolf

MOBO: ASUS PRIME B550M-K BIOS 4101 10/16/2025
CPU: AMD Ryzen 9 5900X 12-Core Processor (24) @ 3800 MHz
GPU: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB
Top
mmogilvi
n00b
n00b
Posts: 64
Joined: Fri May 13, 2011 3:13 am

  • Quote

Post by mmogilvi » Fri Feb 03, 2023 3:52 pm

I see the same thing, but only sometimes. Probably based on which DNS response (mirror) it happens to try first, each time.

I suspect it would be safe to follow a procedure:
  • Control-C cancel the sync if you see that error.
  • Re-start the sync
  • When/if a sync doesn't give that message, let it finish, and then continue to update using with the result.
If you've already let it finish with the error, don't try to do anything that might partially execute ebuilds (possibly not even "emerge -p"), until you can follow the above procedure successfully (and watch out for the way emerge --sync typically aborts the sync if it detects that a timestamp file hasn't changed - that isn't a full sync). Or: If this is the "first" machine, and other machines on your LAN are set to sync to your first machine, you could try the procedure on those other machines (assuming they still get the keys from the external key servers), and if they work, then the "first" machine should also be OK.

It might be fairly safe to proceed with the update anyway, depending on exactly why emerge --sync decided to proceed with the sync despite the key update error.
FUTURE: If it were to explain its reasoning with a message like "key update failed; proceeding using previous keys", then I would be more confident that what it was doing was reasonably safe. (Or even better: fail, but have (and mention in the error message) a command-line option that could allow it to proceed using previous keys.) (However, I could still imagine an attack scenario where the old keys were leaked and replaced, and an attacker spoofs a key server that always fails (to prevent you from getting the new keys), and also spoofs a sync server with malware ebuilds/package manifests signed using the now-leaked old keys... (glossing over the plublic vs private parts of keys))
Top
Eggplants
n00b
n00b
Posts: 22
Joined: Sat Oct 22, 2011 8:26 pm

  • Quote

Post by Eggplants » Fri Feb 03, 2023 5:30 pm

Looks like a bug has been filed on this:

https://bugs.gentoo.org/892976
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic