Skip to content

Checking SSL connectivity #20

Closed Answered by maximevw
ashetkar asked this question in Q&A
Mar 29, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hello @ashetkar ,

Typically, the error "No subject alternative names present" appears when the server certificate's CN does not match the server hostname and there is no alternative names in the certificate potentially matching the hostname.

By default, when using the JSSE properties as you did, the connection will be established using the DefaultSslEngineFactory in which the hostname verification is activated by default:

# Whether or not to require validation that the hostname of the server certificate's common
# name matches the hostname of the server being connected to. If not set, defaults to true.
// hostname-validation = true

(See: https://docs.datastax.com/en/developer/java-driver…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ashetkar
Comment options

You must be logged in to vote
3 replies
@maximevw
Comment options

@ashetkar
Comment options

@maximevw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants