# \[ssl: certificate\_verify\_failed\]

**URL:** <https://discuss.huggingface.co/t/ssl-certificate-verify-failed/63404>\
**Category:** Beginners\
**Created:** [November 24, 2023, 11:31am UTC](https://discuss.huggingface.co/t/ssl-certificate-verify-failed/63404 "2023-11-24T11:31:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommycmy](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tommycmy](https://discuss.huggingface.co/u/Tommycmy)\
**Post date:** [November 24, 2023, 11:31am UTC](https://discuss.huggingface.co/t/ssl-certificate-verify-failed/63404/1 "2023-11-24T11:31:21Z")

</div>

Hi

I am using huggingface-cli login to login from console. But I got the following error after I enter the token generated from my huggingface account.

requests.exceptions.SSLError: (MaxRetryError(“HTTPSConnectionPool(host=‘[huggingface.co](http://huggingface.co)’, port=443): Max retries exceeded with url: /api/whoami-v2 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1129)’)))”), ‘(Request ID: cc058227-71c0-4574-aadc-c0bc68845fb3)’)

How to I fix this?

Thanks!

---

<div class="post-metadata">

**Author:** ![LafouCC](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lafoucc/32/26344_2.png) [@LafouCC](https://discuss.huggingface.co/u/LafouCC)\
**Post date:** [April 29, 2024, 10:49am UTC](https://discuss.huggingface.co/t/ssl-certificate-verify-failed/63404/2 "2024-04-29T10:49:44Z")

</div>

same issue here
