{"id":1547,"date":"2019-08-31T00:08:09","date_gmt":"2019-08-30T15:08:09","guid":{"rendered":"https:\/\/oboki.net\/?p=1547"},"modified":"2020-07-13T00:09:49","modified_gmt":"2020-07-12T15:09:49","slug":"ssl-certificate_verify_failed-%eb%ac%b8%ec%a0%9c-%ec%9a%b0%ed%9a%8c","status":"publish","type":"post","link":"https:\/\/oboki.net\/workspace\/python\/ssl-certificate_verify_failed-%eb%ac%b8%ec%a0%9c-%ec%9a%b0%ed%9a%8c\/","title":{"rendered":"[Python] SSL: CERTIFICATE_VERIFY_FAILED \ubb38\uc81c \uc6b0\ud68c"},"content":{"rendered":"<p>\uc778\ud130\ub137 \uc5f0\uacb0\uc774 \uc790\uc720\ub86d\uc9c0 \uc54a\uc740 \uc0ac\uc124\ub9dd\uc5d0\uc11c \uc774\ub7f0 \ubb38\uc81c\uac00 \uc885\uc885 \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294\ub370 \uc774\ub7f0 \uacbd\uc6b0 \uc778\uc99d\uc11c \uac80\uc99d \ub2e8\uacc4\ub97c \ubb34\uc2dc\ud574\uc8fc\ub294 \uac83\uc73c\ub85c \uc6b0\ud68c(?)\ud560 \uc218 \uc788\ub2e4. \ubb3c\ub860 \uc2e0\ub8b0\ubc1b\uc9c0 \ubabb\ud55c \ud638\uc2a4\ud2b8\uc5d0 https \uc5f0\uacb0\uc744 \ud558\ub294 \uac83\uc740 \ubcf4\uc548 \uce21\uba74\uc5d0\uc11c \uc704\ud5d8\ud560 \uc218 \uc788\ub2e4\ub294 \uc0ac\uc2e4\uc740 \uc54c\uace0\uc788\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n<p>pip \uc744 \uc774\uc6a9\ud574\uc11c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud560 \ub54c \ub2e4\uc74c\uacfc \uac19\uc740 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uba74<\/p>\n<pre><code class=\"language-txt\">Collecting encodings\n  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by &#039;SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)&#039;: \/simple\/encodings\/\n  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by &#039;SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)&#039;: \/simple\/encodings\/\n  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by &#039;SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)&#039;: \/simple\/encodings\/\n  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by &#039;SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)&#039;: \/simple\/encodings\/\n  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by &#039;SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)&#039;: \/simple\/encodings\/\n  Could not fetch URL https:\/\/pypi.org\/simple\/encodings\/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=&#039;pypi.org&#039;, port=443): Max retries exceeded with url: \/simple\/encodings\/ (Caused by SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)) - skipping\n  Could not find a version that satisfies the requirement encodings (from versions: )\nNo matching distribution found for encodings\nCould not fetch URL https:\/\/pypi.org\/simple\/pip\/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=&#039;pypi.org&#039;, port=443): Max retries exceeded with url: \/simple\/pip\/ (Caused by SSLError(SSLError(1, &#039;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)&#039;),)) - skipping<\/code><\/pre>\n<p>pip \uba85\ub839\uc904\uc5d0\uc11c <code>--trusted-host<\/code> \uc635\uc158\uc744 \uc9c0\uc6d0\ud558\uae30 \ub584\ubb38\uc5d0 \ub2e4\uc74c\uacfc \uac19\uc740 \uc635\uc158\uc744 \ucd94\uac00\ud574\uc11c pypi.org, files.pypthonhosted.org \ub450 \ud638\uc2a4\ud2b8\ub294 \ubbff\uc744\ub9cc \ud558\ub2e4\uace0 \uc218\ub3d9\uc73c\ub85c \uc778\uc99d\uc744 \uc2a4\ud0b5\ud560 \uc218 \uc788\ub2e4.<\/p>\n<pre><code class=\"language-bash\">--trusted-host pypi.org --trusted-host files.pythonhosted.org<\/code><\/pre>\n<p>\ub9e4\ubc88 \uba85\ub839\uc904\uc5d0 \uc4f0\ub294\uac8c \ubc88\uac70\ub86d\ub2e4\uba74 \ub0b4\ubd80\uc801\uc73c\ub85c requests \ub77c\uc774\ube0c\ub7ec\ub9ac \uc774\uc6a9\ud558\ub294 <code>${site-packages PATH}\/pip\/_vendor\/requests\/sessions.py<\/code> \ucf54\ub4dc\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 verify = False \ub85c \uc124\uc815\ud574\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<pre><code class=\"language-py\">        #: SSL Verification default.\n        #self.verify = True\n        self.verify = False<\/code><\/pre>\n<p>\ubb3c\ub860 \ubaa8\ub4e0 \ud638\uc2a4\ud2b8\uc5d0 \uc778\uc99d\uc11c \uac80\uc99d\uc744 \ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \uc870\uc2ec\ud574\uc11c \uc368\uc57c\ud55c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc778\ud130\ub137 \uc5f0\uacb0\uc774 \uc790\uc720\ub86d\uc9c0 \uc54a\uc740 \uc0ac\uc124\ub9dd\uc5d0\uc11c \uc774\ub7f0 \ubb38\uc81c\uac00 \uc885\uc885 \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294\ub370 \uc774\ub7f0 \uacbd\uc6b0 \uc778\uc99d\uc11c \uac80\uc99d \ub2e8\uacc4\ub97c \ubb34\uc2dc\ud574\uc8fc\ub294 \uac83\uc73c\ub85c \uc6b0\ud68c(?)\ud560 \uc218 \uc788\ub2e4. \ubb3c\ub860 \uc2e0\ub8b0\ubc1b\uc9c0 \ubabb\ud55c \ud638\uc2a4\ud2b8\uc5d0 https \uc5f0\uacb0\uc744 \ud558\ub294 \uac83\uc740 \ubcf4\uc548 \uce21\uba74\uc5d0\uc11c \uc704\ud5d8\ud560 \uc218 \uc788\ub2e4\ub294 \uc0ac\uc2e4\uc740 \uc54c\uace0\uc788\uc5b4\uc57c \ud55c\ub2e4. pip \uc744 \uc774\uc6a9\ud574\uc11c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud560 \ub54c \ub2e4\uc74c\uacfc \uac19\uc740 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uba74 Collecting encodings Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1547","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/1547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/comments?post=1547"}],"version-history":[{"count":0,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/1547\/revisions"}],"wp:attachment":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/media?parent=1547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/categories?post=1547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/tags?post=1547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}