| 1 |
# Want to skip this test from Valgrind execution |
| 2 |
--source include/no_valgrind_without_big.inc |
| 3 |
# Save the initial number of concurrent sessions |
| 4 |
--source include/count_sessions.inc |
| 5 |
|
| 6 |
let $ssl_verify_fail_path = --ssl --ssl-ca=$MYSQL_TEST_DIR/std_data/ca-cert-verify.pem --ssl-key=$MYSQL_TEST_DIR/std_data/server-key-verify-fail.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/server-cert-verify-fail.pem; |
| 7 |
|
| 8 |
let $tls_default= TLSv1.2; |
| 9 |
|
| 10 |
--echo #T1: Host name (/CN=localhost/) as OU name in the server certificate, server certificate verification should fail. |
| 11 |
--let $restart_parameters="restart: $ssl_verify_fail_path" |
| 12 |
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR |
| 13 |
--source include/restart_mysqld.inc |
| 14 |
|
| 15 |
--error 1 |
| 16 |
--exec $MYSQL --protocol=tcp --ssl-ca=$MYSQL_TEST_DIR/std_data/ca-cert-verify.pem --ssl-mode=VERIFY_IDENTITY -e "SHOW STATUS like 'Ssl_version'" |
| 17 |
|
| 18 |
--let $restart_parameters="restart: " |
| 19 |
--source include/restart_mysqld.inc |