# \[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed: Hostname mismatch

**URL:** <https://discuss.huggingface.co/t/ssl-certificate-verify-failed-certificate-verify-failed-hostname-mismatch/94868>\
**Category:** Beginners\
**Created:** [July 1, 2024, 6:51am UTC](https://discuss.huggingface.co/t/ssl-certificate-verify-failed-certificate-verify-failed-hostname-mismatch/94868 "2024-07-01T06:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devika24](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Devika24](https://discuss.huggingface.co/u/Devika24)\
**Post date:** [July 1, 2024, 6:51am UTC](https://discuss.huggingface.co/t/ssl-certificate-verify-failed-certificate-verify-failed-hostname-mismatch/94868/1 "2024-07-01T06:51:27Z")

</div>

Hi ,  
In my Huggingface application I have mentioned huggingface\_hub module in the requirements.txt . I have created an access token with my Hugging Face account.

I got this error:

requests.exceptions.SSLError: (MaxRetryError(‘HTTPSConnectionPool(host='api-inference.huggingface.co', port=443): Max retries exceeded with url: /pipeline/feature-extraction/sentence-transformers/all-mpnet-base-v2 (Caused by SSLError(SSLCertVerificationError(1, “[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'api-inference.huggingface.co'. (\_ssl.c:1006)”)))’), ‘(Request ID: c13347fb-406f-4581-afda-188bc667a117)’)
