mirror of
https://github.com/MariaDB/server.git
synced 2025-02-23 05:43:08 +01:00

* add a test when server certificate is verified successfully * one test with two combinations (instead of two tests) * verbose tets: make it print what it is doing * fix the test to work with yassl and no-ssl builds
16 lines
535 B
Text
16 lines
535 B
Text
create procedure have_ssl()
|
|
select if(variable_value > '','yes','no') as 'have_ssl'
|
|
from information_schema.session_status
|
|
where variable_name='ssl_cipher';
|
|
mysql --ssl-ca=cacert.pem -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl-ca=cacert.pem --ssl-verify-server-cert -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl --ssl-verify-server-cert -e "call test.have_ssl()"
|
|
ERROR 2026 (HY000): SSL connection error: Failed to verify the server certificate
|
|
drop procedure have_ssl;
|