RundeckからMySQLに接続しにいく際に出る `WARN: Establishing SSL connection without server's identity verification is not recommended` を止めてしまう

皆さま、どうもこんにちわ。

最近Rundeckばっかり触ってて小ネタがいっぱいですw

今回の小ネタは、RundeckでリポジトリDBにMySQLを使っている際に、SSL設定を明示的に無効にしていないと下記のようなメッセージが常に出る(証明書使ってない場合)

Wed May 09 21:26:00 JST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

ということで、ジョブを実行する度にエラーログに出力されてうるさいのでSSLを無効にしてしまう(いいのかw?)

ちなみに試した環境はこちらと一緒です

RundeckでMySQL利用時に作成されるテーブル内容調査 - namio's blog

設定手順

下記のようにuseSSL=falseを追加する

[root@rundeck1 ~]# vi /etc/rundeck/rundeck-config.properties
〜〜略〜〜
dataSource.url = jdbc:mysql://{mysqlのホスト名}/{DB名}?autoReconnect=true&useSSL=false

再起動して反映すればメッセージはでなくなる

[root@rundeck1 ~]# systemctl restart rundeckd