ravendb / ravendb-python-client

This is the official python client for RavenDB document database
MIT License
35 stars 22 forks source link

How do connect to ravendb via SSL #58

Closed MohMehrnia closed 5 years ago

MohMehrnia commented 6 years ago

How do connect to ravendb via connect with below code: store = document_store.DocumentStore(urls=["https://localhost:4343"], database="SeSimi")

IdanHaim commented 5 years ago

You will need to have a certificate and add the path to it when you open a documentstore store = document_store.DocumentStore(urls=["https://localhost:4343"], database="SeSimi", certificate=path_to_PEM_file). You can create a certificate from the setup wizard when you open a new server or if you have one of your own.

MohMehrnia commented 3 years ago

When i set crtificate, show me below eeor: OpenSSL.crypto.Error: [('asn1 encoding routines', 'asn1_d2i_read_bio', 'not enough data')]