TLS client: In state cipher received SERVER ALERT: Fatal - Unknown CA error enabling x509 cert auth for replcation #2964
Unanswered
raulmartinezr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I try to configure client certificate authentication in the following scenario with couchDB 3.1.0
However, when everything seems to be well configured I see the following errors
Client side
Server Side
It seems client does not trust server CA, but it should do. I reproduced the same connecttion with openssl and curl, and it's working in both cases
sudo curl --url https://192.168.1.66:6984/database/ \ --key /opt/couchdb/etc/ssl/node-71.client.key.pem \ --cert /opt/couchdb/etc/ssl/node-71.client.cert.pem \ --cacert /opt/couchdb/etc/ssl/ca-chain.cert.pem --insecure {"error":"unauthorized","reason":"You are not authorized to access this db."}Below relevant configuration in both sides, client and server
Remark: all certificates are signed by same intermediate CA (all have the same validation path) and both, root and intermediate CAs are included in /opt/couchdb/etc/ssl/ca-chain.cert.pem
Client
[ssl] enable = true cert_file = /opt/couchdb/etc/ssl/node-71.server.cert.pem key_file = /opt/couchdb/etc/ssl/node-71.server.key.pem verify_ssl_certificates = true fail_if_no_peer_cert = false cacert_file = /opt/couchdb/etc/ssl/ca-chain.cert.pem [replicator] cert_file = /opt/couchdb/etc/ssl/node-71.client.cert.pem key_file = /opt/couchdb/etc/ssl/node-71.client.key.pem ;# Avoid hostanme check failed verify_ssl_certificates = false ssl_trusted_certificates_file = /opt/couchdb/etc/ssl/ca-chain.cert.pem ssl_certificate_max_depth = 5Server
[ssl] enable = true cert_file = /opt/couchdb/etc/ssl/node-66.server.cert.pem key_file = /opt/couchdb/etc/ssl/node-66.server.key.pem verify_ssl_certificates = true fail_if_no_peer_cert = true cacert_file = /opt/couchdb/etc/ssl/ca-chain.cert.pem [replicator] cert_file = /opt/couchdb/etc/ssl/node-66.client.cert.pem key_file = /opt/couchdb/etc/ssl/node-66.client.key.pem verify_ssl_certificates = false ssl_trusted_certificates_file = /opt/couchdb/etc/ssl/ca-chain.cert.pemBeta Was this translation helpful? Give feedback.
All reactions