Skip to content

Commit d0f3ece

Browse files
committed
add sha256 auth keys
1 parent 42e9ada commit d0f3ece

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.initialize.db.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ if [ ! -z "${DB}" ]; then
3232
if [ -x ${P}/bin/mysql_ssl_rsa_setup ]; then
3333
${P}/bin/mysql_ssl_rsa_setup --datadir=${HOME}/db-"${DB}"
3434
fi
35+
# sha256 password auth keys:
36+
openssl genrsa -out "${P}"/private_key.pem 2048
37+
openssl rsa -in "${P}"/private_key.pem -pubout -out "${P}"/public_key.pem
3538
${P}/bin/mysqld_safe ${O} --ledir=/ --mysqld=${P}/bin/mysqld --datadir=${HOME}/db-${DB} --socket=/tmp/mysql.sock --port 3307 --innodb-buffer-pool-size=200M --lc-messages-dir=${P}/share --plugin-dir=${P}/lib/plugin/ --log-error=/tmp/mysql.err &
3639
while [ ! -S /tmp/mysql.sock ]; do
3740
sleep 2

0 commit comments

Comments
 (0)