| 1 |
# === Purpose === |
| 2 |
# This test verifies that while verifying the server certificates |
| 3 |
# when ssl-mode=VERIFY_IDENTITY, the DNS/IPs provided in the Subject |
| 4 |
# Alternative Names (which can be provided as an extension in X509) |
| 5 |
# fields are also checked for apart from the Common Name in the subject. |
| 6 |
# Applicable for openssl versions 1.0.2 and greater. |
| 7 |
# |
| 8 |
# === Related bugs and/or worklogs === |
| 9 |
# Bug #29691694 - LIBMYSQLXCLIENT --SSL-MODE=VERIFY_IDENTITY DOESN'T USE SUBJECT ALT NAMES |
| 10 |
# |
| 11 |
# Note that these test cases are written keeping in mind that the openssl version used by the system will |
| 12 |
# be 1.0.2+. For older versions of openssl, the test will be skipped. |
| 13 |
|
| 14 |
--source include/allowed_ciphers.inc |
| 15 |
--source include/check_openssl_version.inc |
| 16 |
--source include/xplugin_preamble.inc |
| 17 |
--source include/xplugin_create_user.inc |
| 18 |
|
| 19 |
|
| 20 |
let PARAM_TEST_EXE=$MYSQLXTEST --user=x_root ; |
| 21 |
let PARAM_CIPHER_VARIABLE=Mysqlx_ssl_cipher; |
| 22 |
let PARAM_VERIFY_IDENTITY_ERROR=ERROR: No such host is known 'nonexistent' \(code 2005\); |
| 23 |
--source include/test_ssl_verify_identity.inc |
| 24 |
|
| 25 |
## Cleanup |
| 26 |
--source ../include/xplugin_cleanup.inc |