summaryrefslogtreecommitdiff
path: root/mysql-test/r/ssl_7937.result
blob: a94ca3b35297335116941492213e9ccc87688315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;