SSL Error when using Untrusted SSL Certificates for MySQL Connections via Connector/J (Doc ID 2040481.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.
The specific error relates to Connector/J, but similar errors could be manifested via other connection methods with the same issue.

Symptoms

On : 5.6 version, SSL

When attempting to connect to MySQL with SSL,
the following error occurs.

ERROR
-----------------------
Client got error “javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca”


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Set up MySQL server and client to use SSL
2. Use a certificate authority that is not trusted, NOT locally signed certificates
3. Attempt to connect using SSL

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot obtain a secure SSL connection to the MySQL Server.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms