# Using huggingface CLI with a certificate

**URL:** <https://discuss.huggingface.co/t/using-huggingface-cli-with-a-certificate/109230>\
**Category:** Beginners\
**Created:** [September 28, 2024, 11:56pm UTC](https://discuss.huggingface.co/t/using-huggingface-cli-with-a-certificate/109230 "2024-09-28T23:56:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 30, 2024, 12:32am UTC](https://discuss.huggingface.co/t/using-huggingface-cli-with-a-certificate/109230/4 "2024-09-30T00:32:27Z")

</div>

When a lot of people lament about some problem, there’s often something buggy in there…  
Anyway, something is not working as it is supposed to.  
I’ve never messed with SSL certificates…  
Like this one?

> <https://stackoverflow.com/questions/71692354/facing-ssl-error-with-huggingface-pretrained-models>

> [@SSL Certificate Issue](https://discuss.huggingface.co/t/ssl-certificate-issue/51405/1):
>
> 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 = TFAu…

---

_[View the full topic](https://discuss.huggingface.co/t/using-huggingface-cli-with-a-certificate/109230)._
