Replies: 3 comments 2 replies
-
I have tested now downloading CouchDB 2.3.1 for MAC and running it from the downloads folder. Safari opened up automatically, I changed from HTTP to HTTPS and port to 6984. The opened Chrome and the error message changed to ERR_SSL_SERVER_CERT_BAD_FORMAT and "localhost doesn't met security standards". Something in CouchDB 3.1.0 does not ssl-handshakes the same as in 2.3.1. |
Beta Was this translation helpful? Give feedback.
-
I had a report of this relating to a third part product I use where CouchDB 3.1 would fail in Safari and the native Mac/iOS app (Tap Forms; I do not represent this product, I'm merely a user of both it and CouchDB) with a certificate error. In the logs from the app, it looked like the Mac was expecting something more and then the connection aborts:
Apple's Boring SSL seems to think that there is something missing from the picture. If I try openssl or curl then the server works as CouchDB 3.1. Looking at the packet dump there appears to be an error mentioning "Inappropriate Fallback" after what looks like three "Client Hello" requests. I can share the packet dump because it shows CouchDB 2.3.1 working properly and then after swapping to CouchDB 3.1, the request failing whilst running on the macOS Catalina box. When testing using Safari, it displayed an error indicating it was unable to connect to the server which seems consistent with the SSL errors in the above log from Tap Forms. This seems to relate to something in macOS Catalina, and potentially iOS 13, where the certificate requirements were changed. Using CouchDB 3.1 with a macOS Mojave device didn't encounter any issues. The server was setup on a macOS Catalina box. Tested combinations:
I have a Ubuntu 20.04 box running CouchDB 3.1 and the Catalina Mac and iOS 13 devices seem to connect to it fine using a certificate generated using the same base script and trusted by those devices using their respective certificate management tools:
|
Beta Was this translation helpful? Give feedback.
-
Is anyone having this issue in any environment other than macOS? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi People,
I am trying to learn more about CouchDB, but I have now 2.5 weeks dealing with SSL certificates and trying to get HTTPS working on a localhost environment.... Why? Because I just wanted to learn how big deal is this to be setup and because a production environment would require it.
PROBLEM:
After enabling SSL accordingly to the manual it doesn't works in Chrome and Safari.
FACTS:
OTHER DETAILS:
I looked most of this time searching a problem in the SSL certificate itself and generated a bunch of certificates with different approaches, like becoming a CA at localhost of my own certificate, adding the subjectAltName and stuff... all of them worked in Curl and Firefox, non in Chrome and Safari.
chrome://flags/#allow-insecure-localhost is ENABLED
I have seen errors in Chrome that manifests as ERR_SSL_PROTOCOL_ERROR and ERR_CERT_AUTHORITY_INVALID, but ERR_CONNECTION_CLOSED doesn't seem as a Certificate-related problem.
Running Chrome with debug verbose log enabled doesn't shows the connection handshake ./Google\ Chrome --enable-logging --v=1 at /Library/Application Support/Google/Chrome/chrome_debug.log
I lost count of how many tests I performed regarding mainly on certificates, but one that I couldn't figure it out is to watch WHEN is the connection interrupted at the handshake itself, as it seems that CouchDB is ending the connection and then ERR_CONNECTION_CLOSED is shown before any certificate is processed and rejected. It also seems that Chrome is not able to show a trace of that handshake as the connection is not-established.
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
¿May this be really about handshaking?
¿May this be an issue at CouchDB side?
Beta Was this translation helpful? Give feedback.
All reactions