(address . bug-guix@gnu.org)
While working on some package updates, I found that the source code
downloader will accept an X.509 certificate for an incorrect site.
Here is what happens:
------
$ ./pre-inst-env guix build -S opus-tools --check
@ build-started /gnu/store/nn93hkik8kvrigcf2pvmym01zg7jqm4v-opus-tools-0.1.10.tar.gz.drv - x86_64-linux /var/log/guix/drvs/nn//93hkik8kvrigcf2pvmym01zg7jqm4v-opus-tools-0.1.10.tar.gz.drv.bz2
Starting download of /gnu/store/0js62s7pz9gfcdsd1n764w91mhhwkws4-opus-tools-0.1.10.tar.gz
….1.10.tar.gz 305KiB 822KiB/s 00:00 [####################] 100.0%
warning: rewriting hashes in `/gnu/store/vdpyfqzp0kkjpxr79fq3an7j4s4vkz0h-opus-tools-0.1.10.tar.gz'; cross fingers
/gnu/store/vdpyfqzp0kkjpxr79fq3an7j4s4vkz0h-opus-tools-0.1.10.tar.gz
------
Here is an example of what I think should happen in this case:
------
curl: (51) SSL: certificate subject name (osuosl.org) does not match target host name 'downloads.xiph.org'
------
And this is what Firefox says:
------
downloads.xiph.org uses an invalid security certificate.
The certificate is only valid for the following names:
osuosl.org, *.osuosl.org
Error code: SSL_ERROR_BAD_CERT_DOMAIN
------
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAllKD40ACgkQJkb6MLrK
fwi3AxAAy3CP9JTnWDNktV5M0dVzG86s1VJWOJcQ1m3K9Cm6aKvDI3MzeBGW0fQw
IWsfT0UUbAmQeSAQeYxkNWciu6k1RfUqYKkIh06YS5UySimK6jPhnNInhcHd/sdM
upXvG0s+k8ToUzcTlt1dzB7KLmQ/qcfGpMAI6ccYn4HIx8LVH8QbN0vnpcNAUtYC
2tZPCHeq6noFiKQmTZ6OX7kK3HBidMBQUnGOZT/Ben/ADMToO05T2L/0n3Xed0JW
rxjXvzOEa4eiGg/klQdgkwDkBWs3Xim7PCRZGFQASt8rMiyx7bDD8xe3SKK5/3be
sWEUzsDiostoRN4SrNhRhFpQLpy5Mvuzcw9JRfuTCgNTTIK0qUVp5M2iJhBAgSfX
EA+LKpnu5OwtR/5E/ijQlR5R+H56hs0QEs778BiUt2Ki/lvY8egGfHoqvEUzXh/l
EYeuw+OsUgkuJ41yxQvMAyM3dHn/ZlUh0iG/3KsLAZvxVpl5jVq+EIX/8uzK7Wfv
Y7Z9NS3nJuab3ez4ckUPWPQt92STh9uhYTJJhJqOqxPuzlt001IoJkSMmHEdaRdL
KfJHQ5J7s8Rg7RH2QbkSKeLLqvAOLRcd+p3FyBG9LF7IKOvD2Q8Sltw0++uMQStn
eHQePm+CfN1CmkCljlTCA3sKflbBYEAJppO3J5kioSTLmDrk0EY=
=iOdX
-----END PGP SIGNATURE-----