# SSL Certificate Issue

**URL:** <https://discuss.huggingface.co/t/ssl-certificate-issue/51405>\
**Category:** 🤗Transformers\
**Created:** [August 20, 2023, 10:49am UTC](https://discuss.huggingface.co/t/ssl-certificate-issue/51405 "2023-08-20T10:49:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Himanshi-huggingface](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@Himanshi-huggingface](https://discuss.huggingface.co/u/Himanshi-huggingface)\
**Post date:** [August 20, 2023, 10:49am UTC](https://discuss.huggingface.co/t/ssl-certificate-issue/51405/1 "2023-08-20T10:49:42Z")

</div>

**Error** : SSLError: HTTPSConnectionPool(host=‘[huggingface.co](http://huggingface.co)’, port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: Unable to get local issuer certificate (ssl.c:997)’)))

**Python Script**

from transformers import AutoTokenizer  
from transformers import TFAutoModelForMaskedLM  
tokenizer = AutoTokenizer.from\_pretrained(‘distilroberta-base’)  
model\_checkpoint = ‘distilbert-base-uncased’  
model = TFAutoModelForMaskedLM.from\_pretrained(model\_checkpoint)  
model.summary()

**Observations:**

When we try to run the above mentioned python script where we trying to establish the connection with hugging face and using the transformer library we are facing the SSL issue .

When we checked the SSL certificate **with Domain-joined machine** , we found the **Issuer By** as **‘Cisco Umbrella’**. Please see the below image.

 ![MicrosoftTeams-image (47)](https://us1.discourse-cdn.com/hellohellohello/original/3X/e/3/e3e3503c094bd0076d0793f5c353c966137d3528.png)

When we checked the SSL certificate **without Domain-joined machine** , we found the **Issued By** as **'Amazon RSA 2048 M01 ’**.

Please have the look on the SSL certificate and if we can get the resolution and the cause of the issue. Thanks

---

_[View the full topic](https://discuss.huggingface.co/t/ssl-certificate-issue/51405)._
