{"id":2904,"date":"2014-04-17T13:25:10","date_gmt":"2014-04-17T18:25:10","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=2904"},"modified":"2014-04-17T13:25:10","modified_gmt":"2014-04-17T18:25:10","slug":"ssl-and-mariadbmysql","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/17\/ssl-and-mariadbmysql","title":{"rendered":"SSL and MariaDB\/MySQL"},"content":{"rendered":"<p>With the recent <a href=\"http:\/\/heartbleed.com\/\">Heartbleed<\/a> bug, people are clearly more interested in their MariaDB\/MySQL running with SSL and if they have problems. First up, you should read the advisory notes: <a href=\"https:\/\/mariadb.com\/blog\/openssl-heartbleed-security-update\">MariaDB<\/a>, <a href=\"http:\/\/www.percona.com\/ceo-customer-advisory-heartbleed\">Percona Server<\/a> (<a href=\"http:\/\/www.mysqlperformanceblog.com\/2014\/04\/14\/advisory-heartbleed-cve-2014-0160-perconas-customers-users\/\">blog<\/a>), and <a href=\"http:\/\/www.oracle.com\/technetwork\/topics\/security\/opensslheartbleedcve-2014-0160-2188454.html\">MySQL<\/a>\u00a0(<a href=\"https:\/\/blogs.oracle.com\/security\/entry\/april_2014_critical_patch_update\">blog<\/a>).<\/p>\n<p>Next, when you install MariaDB (or a variant) you are usually <i>dynamically linked<\/i> to the OpenSSL library that the system provides. Typically on startup of MariaDB 10.0.10 on CentOS 6.5 (packages from the <a href=\"https:\/\/downloads.mariadb.org\/mariadb\/repositories\">MariaDB repository<\/a>), you can check what your status of SSL is.<\/p>\n<pre>\nMariaDB [(none)]> show variables like 'have_ssl';\n+---------------+----------+\n| Variable_name | Value    |\n+---------------+----------+\n| have_ssl      | DISABLED |\n+---------------+----------+\n1 row in set (0.00 sec)\n<\/pre>\n<p>This means that SSL options are compiled, but <tt>mysqld<\/tt> didn&#8217;t start with it. You can verify SSL is linked dynamically:<\/p>\n<pre>\nldd `which mysqld` | grep ssl\n\tlibssl.so.10 => \/usr\/lib64\/libssl.so.10 (0x00007ff82d1b1000)\n<\/pre>\n<p>If you are running with SSL enabled (some <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.5\/en\/configuring-for-ssl.html\">documentation<\/a> at MySQL) you will have different options naturally. You can do this via: <tt>\/etc\/init.d\/mysql start --ssl<\/tt>. Output now changes:<\/p>\n<pre>\nMariaDB [(none)]> show variables like 'have_ssl';\n+---------------+-------+\n| Variable_name | Value |\n+---------------+-------+\n| have_ssl      | YES   |\n+---------------+-------+\n1 row in set (0.00 sec)\n<\/pre>\n<p>The value NO will be displayed if the server is <strong>not compiled<\/strong> with SSL support. See <a href=\"https:\/\/mariadb.com\/kb\/en\/ssl-server-system-variables\/#have_ssl\">SSL Server System Variables<\/a> for more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the recent Heartbleed bug, people are clearly more interested in their MariaDB\/MySQL running with SSL and if they have problems. First up, you should read the advisory notes: MariaDB, Percona Server (blog), and MySQL\u00a0(blog). Next, when you install MariaDB (or a variant) you are usually dynamically linked to the OpenSSL library that the system [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1064,23],"tags":[1052,1775,48,1376,1656],"class_list":["post-2904","post","type-post","status-publish","format-standard","hentry","category-mariadb-databases","category-mysql","tag-mariadb","tag-mysql","tag-oracle","tag-percona-server","tag-ssl"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-KQ","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2904"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2904\/revisions"}],"predecessor-version":[{"id":2905,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2904\/revisions\/2905"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}