Проверка сертификата не удалась: невозможно получить сертификат локального эмитентаPython

Программы на Python
Ответить Пред. темаСлед. тема
Гость
 Проверка сертификата не удалась: невозможно получить сертификат локального эмитента

Сообщение Гость »


I am trying to get data from the web using python. I imported urllib.request package for it but while executing, I get error:

Код: Выделить всё

certificate verify failed: unable to get local issuer certificate (_ssl.c:1045) 
When I changed the URL to 'http' - I am able to get data. But, I believe, this avoids checking SSL certificate.

So I checked on the internet and found one solution: Run

Код: Выделить всё

/Applications/Python\ 3.7/Install\ Certificates.command

This solved my problem. But I have no knowledge on SSL and the likes. Can you help me understand what it actually did to solve my issue.

If possible, please recommend me any good resource to learn about the security and certificates. I am new to this.

Thanks!

Note: I did go through the link - openssl, python requests error: "certificate verify failed"

My question differs from the one in link because, I want to know what actually happens when I install package or run

Код: Выделить всё

Install\ Certificates.command
to fix the error. I have a poor understanding of securities.


Источник: https://stackoverflow.com/questions/528 ... ertificate
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»