-
Notifications
You must be signed in to change notification settings - Fork 55
Error 403 when trying to access couchDB server that uses SSL certificate. #499
Comments
Hello @othmanechentouf, there's some helpful info mentioned in another issue:
I believe you'll want to set the client = CouchDB('myuser', 'mypassword', url='https://xxx.xx.xxx.xx')
client.r_session.verify = '/path/to/certfile'
client.connect()
... |
Hello @emlaver, thank you for your response.
This is cause this line of code :
is returning an empty object. |
I have to point out that with this code :
I get no error and a connection is established. |
@othmanechentouf I did a bit more digging and the
|
@emlaver It didn't work, but I found another solution. You have to install a package called
In case the server you are trying to access is using other kind of certificates (.pem/.cer/.crt..), You just have to point an adapter to that and use your adapter variable as argument for your Cloudant/CouchDB function call. |
Hello,
I'm trying to connect to a remote couchDB server, this server uses a SSL certificate which I installed correctly on my mac and I can access the server via my browser.
When I try to connect to the server via python-cloudant, I get an error, here's the code :
and here's the error I get :
I can't figure out a way around it, another thing is when I point requests directly to the certificate using the code below, I get a response 200, which means that the connection is established. Here's the code :
I'm using macOS Big Sur, Python 3.9.
Thank you in advance.
The text was updated successfully, but these errors were encountered: