Ошибка нет доверия сертификату для raw githubusercontent com

While I want to access to the XSUM dataset, I use the simple code snippet.

from datasets import load_dataset
raw_datasets = load_dataset("xsum", split="train")

Howerver, it shows the following error.

ConnectionError: Couldn’t reach https://raw.githubusercontent.com/EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (SSLError(MaxRetryError(‘HTTPSConnectionPool(host=’raw.githubusercontent.com’, port=443): Max retries exceeded with url: /EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (Caused by SSLError(CertificateError(«hostname ‘raw.githubusercontent.com’ doesn’t match either of ‘default.ssl.fastly.net’, ‘fastly.com’, ‘.a.ssl.fastly.net’, ‘.hosts.fastly.net’, ‘.global.ssl.fastly.net’, ‘.fastly.com’, ‘a.ssl.fastly.net’, ‘purge.fastly.net’, ‘mirrors.fastly.net’, ‘control.fastly.net’, ‘tools.fastly.net'»)))’)))

I check both certicicate and ssl as follows.

$ apt-cache policy ca-certificates

ca-certificates:
Installed: 20230311ubuntu0.20.04.1,
Candidate: 20230311ubuntu0.20.04.1

$ apt-cache policy ssl-cert

ssl-cert:
Installed: 1.0.39
Candidate: 1.0.39

What’s wrong with the load_data function with the datasets module? Please indicate how to solve the issue.

While I want to access to the XSUM dataset, I use the simple code snippet.

from datasets import load_dataset
raw_datasets = load_dataset("xsum", split="train")

Howerver, it shows the following error.

ConnectionError: Couldn’t reach https://raw.githubusercontent.com/EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (SSLError(MaxRetryError(‘HTTPSConnectionPool(host=’raw.githubusercontent.com’, port=443): Max retries exceeded with url: /EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (Caused by SSLError(CertificateError(«hostname ‘raw.githubusercontent.com’ doesn’t match either of ‘default.ssl.fastly.net’, ‘fastly.com’, ‘.a.ssl.fastly.net’, ‘.hosts.fastly.net’, ‘.global.ssl.fastly.net’, ‘.fastly.com’, ‘a.ssl.fastly.net’, ‘purge.fastly.net’, ‘mirrors.fastly.net’, ‘control.fastly.net’, ‘tools.fastly.net'»)))’)))

I check both certicicate and ssl as follows.

$ apt-cache policy ca-certificates

ca-certificates:
Installed: 20230311ubuntu0.20.04.1,
Candidate: 20230311ubuntu0.20.04.1

$ apt-cache policy ssl-cert

ssl-cert:
Installed: 1.0.39
Candidate: 1.0.39

What’s wrong with the load_data function with the datasets module? Please indicate how to solve the issue.

Я пытаюсь использовать wget для извлечения некоторого файла из github поверх удаленного сервера (ssh), вот что я получаю:

$ wget  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
--2014-11-26 09:30:14--  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.31.19.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.19.133|:443... connected.
ERROR: The certificate of `raw.githubusercontent.com' is not trusted.
ERROR: The certificate of `raw.githubusercontent.com' hasn't got a known issuer.

То же самое для curl:

$ curl -o bla  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (60) SSL certificate problem: unable to get local issuer certificate
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 verification of the certificate, use
 the -k (or --insecure) option.

Использование опции wget: --no-check-certificate кажется взломанным, что я могу потерять?

4b9b3361

Ответ 1

Решение было простым, из моей дебианской системы просто установите:

$ sudo apt-get install ca-certificates

Ответ 2

У меня была эта проблема на raspbian, исправлена ​​ее с помощью

sudo apt-get install ssl-cert

In a few words, please describe the issue that you’re experiencing:

wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
--2019-10-02 19:33:49--  https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
ERROR: The certificate of ‘raw.githubusercontent.com’ is not trusted.
ERROR: The certificate of ‘raw.githubusercontent.com’ hasn't got a known issuer.

IF i used the nocheck scertificate then this happened if i run the script:

root@main:~# bash hst-install.sh --multiphp yes --phpfpm yes -e **********@gmail.com -p ************ -s main.xxx.net
Error: hst-install-debian.sh download failed.

Expected behavior:

normal install

Operating system distribution and release:

Debian 9 fresh install

Which version of Hestia Control Panel is currently installed?

grep VERSION $HESTIA/conf/hestia.conf
grep: /conf/hestia.conf: No such file or directory

Which branch are you using?

grep VERSION $HESTIA/conf/hestia.conf
grep: /conf/hestia.conf: No such file or directory

When did this issue occur? After a clean installation, or after an upgrade?

clean install

Which of the following web server configurations are you using?

  • Apache + Nginx (default)
  • PHP-FPM + Multi-PHP

Which of the following server roles are installed on your server?

  • DNS
  • Mail (Dovecot + Exim)
  • MySQL (MariaDB)

In order to better assist, please post any relevant log information below:

Tip: Most log files can be found under /var/log/.

Additional notes:

If there is anything else that you’d like us to know about this issue, feel free to share here.


Linux

  • 10.05.2016
  • 8 490
  • 0
  • 18.03.2019
  • 4
  • 4
  • 0

wget ERROR: The certificate is not trusted

  • Содержание статьи
    • The certificate is not trusted
    • Добавить комментарий

wget — консольный менеджер закачек, с помощью которого через командную строку можно выкачать буквально «что угодно». Однако, не исключены ошибки в процессе эксплуатации, и сейчас мы поговорим об одной из самых распространенных.

The certificate is not trusted

Если при скачивании какого-либо файла через wget появляется следующая ошибка:

ERROR: The certificate of `raw.githubusercontent.com' is not trusted.
ERROR: The certificate of `raw.githubusercontent.com' hasn't got a known issuer.
ERROR: The certificate of `www.dropbox.com' is not trusted.
ERROR: The certificate of `www.dropbox.com' hasn't got a known issuer.

то нужно просто доустановить в системе набор корневых сертификатов. В Debian или Ubuntu делается это следующей командой:

apt-get install ca-certificates

Самый крайний вариант — использовать специальный параметр для игнорирования ошибок проверки сертификатов:

wget --no-check-certificate

Т.е. команда на скачивание через wget должна приобрести подобный вид:

wget --no-check-certificate https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Ошибка невозможно загрузить профиль пользователя
  • Ошибка невозможно выполнить join clan room попробуйте позже
  • Ошибка невозвратных затрат пример
  • Ошибка невозвратных затрат это
  • Ошибка невозвратных затрат книга

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии