bash-5.1# openssl x509 -in "/var/lib/mysql/ca.pem" -noout -text | grep -A2 "Validity" Validity Not Before: Feb 404:26:422023 GMT Not After : Feb 104:26:422033 GMT
bash-5.1# openssl x509 -in "/var/lib/mysql/server-cert.pem" -noout -text | grep -A2 "Validity" Validity Not Before: Feb 404:26:442023 GMT Not After : Feb 104:26:442033 GMT
bash-5.1# openssl x509 -in "/var/lib/mysql/client-cert.pem" -noout -text | grep -A2 "Validity" Validity Not Before: Feb 404:26:442023 GMT Not After : Feb 104:26:442033 GMT
The Server CA is normal. so client key may be invaild.
SOLUTION
Use --skip-ssl option to disable ssl connection.
$ mysql -V mysql from 11.8.1-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
$ mysql -h192.168.3.68 -P33060 -uroot -p --skip-ssl Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 24 Server version: 8.0.42 MySQL Community Server - GPL
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Support MariaDB developers by giving a star at https://github.com/MariaDB/server Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.