| 1 |
### Trying to connect with ssl-mode as DISABLED. This should establish an unencrypted connection. |
| 2 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 3 |
|
| 4 |
Variable_name Value |
| 5 |
Mysqlx_ssl_cipher |
| 6 |
0 rows affected |
| 7 |
Mysqlx.Ok { |
| 8 |
msg: "bye!" |
| 9 |
} |
| 10 |
ok |
| 11 |
### Trying to connect with ssl-mode as REQUIRED. This should establish an encrypted connection. |
| 12 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 13 |
|
| 14 |
Variable_name Value |
| 15 |
Mysqlx_ssl_cipher SSL_CIPHER |
| 16 |
0 rows affected |
| 17 |
Mysqlx.Ok { |
| 18 |
msg: "bye!" |
| 19 |
} |
| 20 |
ok |
| 21 |
### Trying to connect with ssl-mode as VERIFY_CA. This should establish an encrypted connection. |
| 22 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 23 |
|
| 24 |
Variable_name Value |
| 25 |
Mysqlx_ssl_cipher SSL_CIPHER |
| 26 |
0 rows affected |
| 27 |
Mysqlx.Ok { |
| 28 |
msg: "bye!" |
| 29 |
} |
| 30 |
ok |
| 31 |
### Trying to connect with ssl-mode as VERIFY_IDENTITY. This should establish an encrypted connection. |
| 32 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 33 |
|
| 34 |
Variable_name Value |
| 35 |
Mysqlx_ssl_cipher SSL_CIPHER |
| 36 |
0 rows affected |
| 37 |
Mysqlx.Ok { |
| 38 |
msg: "bye!" |
| 39 |
} |
| 40 |
ok |
| 41 |
### Trying to connect with ssl-mode as VERIFY_IDENTITY and hostname as nonexistent. This should fail. |
| 42 |
#Search for the error in the file |
| 43 |
Pattern "ERROR: No such host is known 'nonexistent' \(code 2005\)" found |
| 44 |
### Trying to connect with ssl-mode as VERIFY_IDENTITY and hostname as localhost. This should establish an encrypted connection as localhost is present in Alternative Subject Name in the certificate. |
| 45 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 46 |
|
| 47 |
Variable_name Value |
| 48 |
Mysqlx_ssl_cipher SSL_CIPHER |
| 49 |
0 rows affected |
| 50 |
Mysqlx.Ok { |
| 51 |
msg: "bye!" |
| 52 |
} |
| 53 |
ok |
| 54 |
### Trying to connect with ssl-mode as VERIFY_IDENTITY and hostname as 127.0.0.1. This should establish an encrypted connection as localhost is present in Alternative Subject Name in the certificate. |
| 55 |
RUN SHOW STATUS LIKE 'Mysqlx_ssl_cipher' |
| 56 |
|
| 57 |
Variable_name Value |
| 58 |
Mysqlx_ssl_cipher SSL_CIPHER |
| 59 |
0 rows affected |
| 60 |
Mysqlx.Ok { |
| 61 |
msg: "bye!" |
| 62 |
} |
| 63 |
ok |