1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
#
# Bug#31101320 TLS INITIALIZATION FOR ADMIN CHANNEL
# SHOULD NOT BE DONE DURING --INITIALIZE
#
# create bootstrap file
# shut server down
# Server is down
# -----------------------------------------------------------------------
#
# Try --initialize
#
# Run the server with --initialize
# check for Failed to initialize TSL for channel: mysql_admin. - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should not be present.
Pattern not found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# delete mysqld log
# delete datadir
# -----------------------------------------------------------------------
#
# Try --initialize --admin-address=127.0.0.1
#
# check for Failed to initialize TSL for channel: mysql_admin - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should be not present.
Pattern not found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# delete mysqld log
# delete datadir
# -----------------------------------------------------------------------
#
# Try --initialize-insecure
#
# Run the server with --initialize-insecure
# check for Failed to initialize TSL for channel: mysql_admin - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should not be present.
Pattern not found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# delete mysqld log
# delete datadir
# -----------------------------------------------------------------------
#
# Try --initialize-insecure --admin-address=127.0.0.1
#
# check for Failed to initialize TSL for channel: mysql_admin - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should not be present.
Pattern not found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# delete mysqld log
# -----------------------------------------------------------------------
#
# Restart server with --datadir=DDIR
#
# connect as root
# check for Failed to initialize TSL for channel: mysql_admin - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should be present.
Pattern found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# shut server down
# Server is down
# close the test connection
# delete mysqld log
# -----------------------------------------------------------------------
#
# Restart server with --datadir=DDIR --admin-address=127.0.0.1
#
# connect as root
# check for Failed to initialize TSL for channel: mysql_admin - pattern should be present.
Pattern found.
# check for No TLS configuration was given for channel mysql_admin - pattern should be present.
Pattern found.
# check for Channel mysql_main configured to support TLS - pattern should be present.
Pattern found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# Setting admin certs
# Configure TLS for admin channel
ALTER INSTANCE RELOAD TLS FOR CHANNEL mysql_admin;
# Connect through admin channel using TLS - should be a success.
MYSQL --host=127.0.0.1 --port=MASTER_ADMINPORT --user=root --ssl-mode=REQUIRED -e "SELECT 1"
1
1
# shut server down
# Server is down
# close the test connection
# delete mysqld log
# -----------------------------------------------------------------------
#
# Restart server with --datadir=DDIR --admin-address=127.0.0.1 --skip-ssl
#
# connect as root
# check for Failed to initialize TSL for channel: mysql_admin - pattern should be present.
Pattern found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should not be present.
Pattern not found.
# check for Channel mysql_admin configured to support TLS - pattern should not be present.
Pattern not found.
# shut server down
# Server is down
# close the test connection
# delete mysqld log
# -----------------------------------------------------------------------
#
# Restart server with --datadir=DDIR --admin-address=127.0.0.1 --admin-ssl*
#
# connect as root
# check for Failed to initialize TSL for channel: mysql_admin - pattern should not be present.
Pattern not found.
# check for No TLS configuration was given for channel mysql_admin - pattern should not be present.
Pattern not found.
# check for Channel mysql_main configured to support TLS - pattern should be present.
Pattern found.
# check for Channel mysql_admin configured to support TLS - pattern should be present.
Pattern found.
# shut server down
# Server is down
# close the test connection
# delete mysqld log
# delete datadir
# delete bootstrap file
#
# Cleanup
#
# Restarting the server
|