Неизвестная ошибка протокола SSL

После обновления 15,10 у меня есть ошибка 35 'Неизвестных ошибок протокола SSL в соединении с...', когда я пытаюсь получить доступ к защищенному серверу SSL с помощью ЗАВИХРЕНИЯ из Сценария PHP (PHP5-fpm). Перед обновлением все работали просто великолепно. Какая-либо идея, как зафиксировать это?

apt-cache policy curl
curl:
  Installed: 7.43.0-1ubuntu2
  Candidate: 7.43.0-1ubuntu2
  Version table:
 *** 7.43.0-1ubuntu2 0
        500 http://ua.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

Доступ к https://w3s.webmoney.ru:443

2
задан 23 November 2015 в 23:03

1 ответ

Сервер https://w3s.webmoney.ru:443 не защищен.

% curl https://w3s.webmoney.ru:443
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
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). If the default
 bundle file isn't adequate, 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.

Выполненный

curl --insecure https://w3s.webmoney.ru:443

и это работает.


От man curl

-k, --insecure
    (SSL) This option explicitly allows curl to perform "insecure" SSL
    connections and transfers. All SSL connections are attempted to be
    made secure by using the CA certificate  bundle  installed  by
    default. This makes all connections considered "insecure" fail unless
    -k, --insecure is used.

Добавьте сертификаты, которым доверяют, с

  1. Добавьте путь к сертификату

    /etc/ca-certificates.conf
    

    используйте путь относительно /usr/share/ca-certificates

  2. Выполненный sudo update-ca-certificates

Для дальнейшего чтения инструкций man update-ca-certificates


Взятый из комментариев:

К вашему сведению: тот же сайт имеет SSLv3, и SSLv2 включил - это ПЛОХО и не защищено вообще из-за этого

0
ответ дан 2 December 2019 в 23:40

Другие вопросы по тегам:

Похожие вопросы: