diff options
Diffstat (limited to 'mysql-test/t/ssl_crl.test')
-rw-r--r-- | mysql-test/t/ssl_crl.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/ssl_crl.test b/mysql-test/t/ssl_crl.test new file mode 100644 index 00000000000..65c14837e50 --- /dev/null +++ b/mysql-test/t/ssl_crl.test @@ -0,0 +1,16 @@ +# This test should work in embedded server after we fix mysqltest +-- source include/not_embedded.inc +-- source include/have_openssl.inc + +--echo # test --crl for the client : should connect +--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR +--exec $MYSQL --ssl-ca=$MYSQL_TEST_DIR/std_data/crl-ca-cert.pem --ssl-key=$MYSQL_TEST_DIR/std_data/crl-client-valid-key.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/crl-client-valid-cert.pem test --ssl-crl=$MYSQL_TEST_DIR/std_data/crl-client-revoked.crl -e "SHOW VARIABLES like '%ssl%';" + +--echo # test --crlpath for the client : should connect +--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR +--exec $MYSQL --ssl-ca=$MYSQL_TEST_DIR/std_data/crl-ca-cert.pem --ssl-key=$MYSQL_TEST_DIR/std_data/crl-client-valid-key.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/crl-client-valid-cert.pem --ssl-crlpath=$MYSQL_TEST_DIR/std_data/crldir test -e "SHOW VARIABLES like '%ssl%';" + +--echo # try logging in with a certificate in the server's --ssl-crl : should fail +--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR +--error 1 +--exec $MYSQL --ssl-ca=$MYSQL_TEST_DIR/std_data/crl-ca-cert.pem --ssl-key=$MYSQL_TEST_DIR/std_data/crl-client-key.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/crl-client-cert.pem test -e "SHOW VARIABLES like '%ssl%';" |