Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8596D18B88 for ; Wed, 6 Jan 2016 17:57:40 +0000 (UTC) Received: (qmail 56311 invoked by uid 500); 6 Jan 2016 17:57:40 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 56265 invoked by uid 500); 6 Jan 2016 17:57:40 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 55857 invoked by uid 99); 6 Jan 2016 17:57:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 17:57:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0C8372C1F60 for ; Wed, 6 Jan 2016 17:57:40 +0000 (UTC) Date: Wed, 6 Jan 2016 17:57:40 +0000 (UTC) From: "Matthias Brandt (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10970) SSL/TLS: Certificate Domain is ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085945#comment-15085945 ] Matthias Brandt commented on CASSANDRA-10970: --------------------------------------------- {quote}Are you saying the system hostname of the server(s) is some other domain?{quote} Not only the hostname is different, it's a complete different server. In my current setup, I'm connecting against node1.my.other-domain.com, which responds with a certificate for *.my.domain.com. Just forgot to say: This issue belongs to cqlsh. Just found out that this also was in issue in the java driver from datastax in versions < 3.x: https://datastax-oss.atlassian.net/browse/JAVA-716 > SSL/TLS: Certificate Domain is ignored > -------------------------------------- > > Key: CASSANDRA-10970 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10970 > Project: Cassandra > Issue Type: Bug > Reporter: Matthias Brandt > > I've set up server_encryption_options as well as client_encryption_options. In both settings, I use the same keystore with an wild-card SSL certificate in it. It is signed by our own CA, which root certificate is in the configured truststore: > {code} > server_encryption_options: > internode_encryption: all > keystore: /etc/cassandra/conf/wildcard-cert.keystore > keystore_password: "" > truststore: /etc/cassandra/conf/my-cacerts > truststore_password: changeit > require_client_auth: true > client_encryption_options: > enabled: true > keystore: /etc/cassandra/conf/wildcard-cert.keystore > keystore_password: "" > require_client_auth: false > {code} > The certifcate's subject is: > {code}CN=*.my.domain.com,OU=my unit,O=my org{code} > When I deploy this setting on a server which domain is node1.my.*other-domain*.com a connection via cqlsh wrongly works. Additionally, the inter-node connection between other nodes in this wrong domain also works. > I would expect that the connection would fail with a meaningful error message. -- This message was sent by Atlassian JIRA (v6.3.4#6332)