# Sending Data to elasticsearch

**URL:** <https://discuss.elastic.co/t/sending-data-to-elasticsearch/316911>\
**Category:** Elasticsearch\
**Created:** [October 18, 2022, 3:11pm UTC](https://discuss.elastic.co/t/sending-data-to-elasticsearch/316911 "2022-10-18T15:11:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VitorBarroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitorbarroso/32/99187_2.png) [@VitorBarroso](https://discuss.elastic.co/u/VitorBarroso)\
**Post date:** [October 18, 2022, 3:11pm UTC](https://discuss.elastic.co/t/sending-data-to-elasticsearch/316911/1 "2022-10-18T15:11:26Z")

</div>

Hello,

When i try to connect to my elasticsearch, i have this problem.

If i dont use ca\_certs, its ok but i have the warnings because i dont use the ssl, but when i use the ssl, i have this error(

elastic\_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError([Errno 13] Permission denied))

My\_configuration.py  
client = Elasticsearch(  
hosts='[https://ip:9200](https://ip:9200)',  
basic\_auth=("elastic", "passwd"),  
verify\_certs=True,  
ca\_certs='path'  
)

resp = client.index(index="lista\_de\_vulnerabilidades",  
id=cve, document=info\_do\_cve)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 15, 2022, 3:11pm UTC](https://discuss.elastic.co/t/sending-data-to-elasticsearch/316911/2 "2022-11-15T15:11:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
