Обновление скрипта:
левые https сертификаты не соответствующие доменным именам
$ echo -e \
> "rsync2.ru.gentoo.org\n\
> ftp5.ru.freebsd.org\n\
> mirror.debian.ru\n\
> ru.releases.ubuntu.com\n\
> ru.archive.ubuntu.com\n\
> debian.sbor.net\n\
> be200.com\n\
> debian.atknet.ru\n\
> mirror.yandex.ru"\
> | while read line; \
> do echo -e "\n\n$line"; openssl s_client -showcerts -connect $line:443 </dev/null \
> | grep -A3 'Server certificate'; \
> echo; hostinfo $line; \
> done
rsync2.ru.gentoo.org
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: rsync2.ru.gentoo.org
aliases:
ftp5.ru.freebsd.org
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: ftp5.ru.freebsd.org
mirror.debian.ru
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: mirror.debian.ru
ru.releases.ubuntu.com
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: ru.releases.ubuntu.com
ru.archive.ubuntu.com
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: ru.archive.ubuntu.com
debian.sbor.net
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: debian.sbor.net
be200.com
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: be200.com
aliases:
debian.atknet.ru
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases: debian.atknet.ru
mirror.yandex.ru
...
DONE
Server certificate
subject=C = RU, ST = Moscow, L = Moscow, O = Yandex LLC, CN = ftp.yandex.ru
issuer=C = BE, O = GlobalSign nv-sa, CN = GlobalSign RSA OV SSL CA 2018
address: 213.180.204.183
hostname: mirror.yandex.ru
aliases:
$ openssl storeutl -noout -text -certs "rsync2.ru.gentoo.org.pem" | grep Issuer: -A4
Issuer: C=BE, O=GlobalSign nv-sa, CN=GlobalSign RSA OV SSL CA 2018
Validity
Not Before: Mar 13 08:27:18 2023 GMT
Not After : Oct 13 08:27:18 2023 GMT
Subject: C=RU, ST=Moscow, L=Moscow, O=Yandex LLC, CN=ftp.yandex.ru
$ openssl storeutl -noout -text -certs "www-gentoo-org.pem" | grep Issuer: -A4
Issuer: C=US, O=Let's Encrypt, CN=R3
Validity
Not Before: May 28 19:24:52 2023 GMT
Not After : Aug 26 19:24:51 2023 GMT
Subject: CN=www.gentoo.org