[sisyphus] Re: wget: bugzilla.altlinux.org: unable to get local issuer certificate

Sergey Vlasov =?iso-8859-1?q?vsu_=CE=C1_altlinux=2Eru?=
Пт Сен 9 18:45:05 MSD 2005


On Fri, Sep 09, 2005 at 05:32:46PM +0400, Anton Farygin wrote:
> On Fri, 09 Sep 2005 14:32:28 +0400, Alexey Tourbin wrote:
> 
> > On Fri, Sep 09, 2005 at 12:15:43PM +0300, Michael Shigorin wrote:
> >> > > Не понял.  wget походу вообще "сломан" по
> >> > > части https.
> >> > Попробуй curl, он более крут в этом плане
> >> > чем wget есть еще libcurl, может быть есть
> >> > какая-то обвязка к ней для perl'а
> >> Кстати, да.
> > 
> > Уй, но должен быть какой-нибудь
> > стандартный инструмент под названием
> > "скачать урл и положить в файло".  Тем
> > более что wget -- ГНУтый.
> 
> инструмент есть. называется curl
> 
> curl url >файл

$ curl https://bugzilla.altlinux.ru/ >/dev/null; echo $?   

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
60

Так что нужно или добавлять сертификат CA (раз уж он левый) в
соответствующий файл, или забить на безопасность и отрубить проверку.
Причём wget ищет сертификаты в /var/lib/ssl/cert.pem, а curl - в
/usr/share/curl/curl-ca-bundle.crt.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20050909/380bbfc6/attachment-0003.bin>


Подробная информация о списке рассылки Sisyphus