MySQL Forums
Forum List  »  Install & Repo

Unable to get SSL enabled on MySQL Server 8.4.11 on Linux
Posted by: James Preston
Date: October 05, 2026 03:31PM

I have been struggling days to get SSL working on my server. OpenSSL is installed and configured. I have followed several different guides all of which use almost identical commands. Error I get no matter what is: ERROR 2026 (HY000): SSL connection error: SSL is required but the server doesn't support it

Client my.cnf

[client]
# Connection details
host=xxxxxxxxxxxxxx
port=3306
#socket=/var/run/mysqld/mysqlx.sock

# Authentication (Not recommended for shared systems)
#user=your_username
#password="your_password"

# SSL/TLS Enforcement
ssl-mode=REQUIRED
ssl-cert=/var/lib/mysql/client-cert.pem
ssl-key=/var/lib/mysql/client-key.pem
ssl-ca=/var/lib/mysql/ca-key.pem
# Encoding
default-character-set=utf8mb4

permissions set as directed: 644 for ca.pem 600 for client*.pem mysql:mysql

Server /etc/my.cnf
mysqld]

server_id=1
bind-address=xxxxxxxx
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log_bin=/var/log/mysql/binlog
sync_binlog=1
log-error=/var/log/mysqld.log
pid-file=/run/mysqld/mysqld.pid
default-storage-engine=InnoDB
#innodb=one
tls_ciphersuites=TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256

ssl_ca=/var/lib/mysql/ca.pem
ssl_cert=/var/lib/mysql/server_cert.pem
ssl_key=/var/lib/mysql/server_key.pem
tls_version=TLSv1.3
require_secure_transport=on
auto_generate_certs=on
sha256_password_auto_generate_rsa_keys=on
caching_sha2_password_auto_generate_rsa_keys=on
authentication_policy=caching_sha2_password
ssl-capath=/var/lib/mysql/
#default-auth=caching_sha2_password authentication_policy = 'mysql_native_password, caching_sha2_password'
#caching_sha2_password_private_key_path=private_key.pem
#caching_sha2_password_public_key_path=public_key.pem
#tls_version=TLSv1.2,TLSv1.3
general_log_file=/var/log/mysql/general_log
general_log=1
#mysql_native_password=on


+-------------------------------------+--------------------------------+
| Variable_name | Value |
+-------------------------------------+--------------------------------+
| admin_ssl_ca | |
| admin_ssl_capath | |
| admin_ssl_cert | |
| admin_ssl_cipher | |
| admin_ssl_crl | |
| admin_ssl_crlpath | |
| admin_ssl_key | |
| mysqlx_ssl_ca | |
| mysqlx_ssl_capath | |
| mysqlx_ssl_cert | |
| mysqlx_ssl_cipher | |
| mysqlx_ssl_crl | |
| mysqlx_ssl_crlpath | |
| mysqlx_ssl_key | |
| performance_schema_show_processlist | OFF |
| ssl_ca | /var/lib/mysql/ca.pem |
| ssl_capath | /var/lib/mysql/ |
| ssl_cert | /var/lib/mysql/server_cert.pem |
| ssl_cipher | |
| ssl_crl | |
| ssl_crlpath | |
| ssl_fips_mode | OFF |
| ssl_key | /var/lib/mysql/server_key.pem |
| ssl_session_cache_mode | ON |
| ssl_session_cache_timeout | 300 |
+-------------------------------------+--------------------------------+
25 rows in set (0.50 sec)

Let me know if you need any other info.

Thanks, Jim

Options: Reply• Quote


Subject
Written By
Posted
Unable to get SSL enabled on MySQL Server 8.4.11 on Linux
October 05, 2026 03:31PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.