couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

Chrome manifests ERR_CONNECTION_CLOSED when trying HTTPS and doesn't gets to fail about SSL certificate

Open DiegoJArg opened this issue 5 years ago • 2 comments

I posted this some days ago here: https://github.com/apache/couchdb/discussions/3049

Description

After enabling SSL accordingly to the manual it doesn't works in Chrome and Safari. It works fine in CouchDB 2.3.1 for MAC after downloading and running it from the downloads folder.

Steps to Reproduce

https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=48203146

Expected Behaviour

Chrome and Safari should warn about untrusted certificates or shown any other SSL related error.

Your Environment

CouchDB 3.1.0 macOS Catalina 10.15.5 Chrome 84.0.4147.89 (Build oficial) (64 bits) Safari 13.1.1 Firefox 40.0.2 OpenSSL version LibreSSL 2.8.3 curl 7.64.1

DiegoJArg avatar Aug 04 '20 19:08 DiegoJArg

I have this issue too from my database app (and Safari and other browsers). I can't connect to CouchDB 3.1.0 over SSL using a self-signed (yet trusted) certificate. Neither from iOS, nor from macOS (Catalina and Big Sur).

However, I can connect using curl. I don't know why it's not working in CouchDB 3.1.0, but it does with with CouchDB 2.3.1.

brendand avatar Sep 12 '20 02:09 brendand

Hello,

I have the same problem with pouchDB authentification, couchDB 3.2.1 authentication and VueJS. Everything works fine except on Safari and iOS, cookies are not accepted.

In couchdb local.ini configuration, i add:

[couch_httpd_auth] same_site = None

this.remote.login returns me the correct information, but this.remote.getsession returns me an empty userCtx.

I tested with Axios, when I query the getsession the first time it works and the second time userCtx empty.

Best regard

burotica49 avatar Jan 18 '22 15:01 burotica49