<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=MySQL_SSL</id>
		<title>MySQL SSL - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=MySQL_SSL"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=MySQL_SSL&amp;action=history"/>
		<updated>2026-05-09T02:11:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=MySQL_SSL&amp;diff=2781&amp;oldid=prev</id>
		<title>Maxm at 04:39, 3 February 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=MySQL_SSL&amp;diff=2781&amp;oldid=prev"/>
				<updated>2016-02-03T04:39:05Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:39, 3 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once your certificates are generated, create a directory on the server to store the server certificates such as C:\MySQL\mysql-ssl (Windows) or /etc/mysql-ssl (Linux) and copy the server-key.pem, server-cert.pem and ca.pem files there.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once your certificates are generated, create a directory on the server to store the server certificates such as C:\MySQL\mysql-ssl (Windows) or /etc/mysql-ssl (Linux) and copy the server-key.pem, server-cert.pem and ca.pem files there.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Edit the my.ini file (Windows) or my.cnf file (Linux). Under the [mysqld] section add the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Edit the my.ini file (Windows) or my.cnf file (Linux). Under the [mysqld] section add the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:'''my.ini on Windows''' &amp;lt;pre&amp;gt;ssl-ca=&amp;quot;C:/MySQL/mysql-ssl/ca&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-cert&lt;/del&gt;.pem&amp;quot;&amp;amp;#10;ssl-cert=&amp;quot;C:/MySQL/mysql-ssl/server-cert.pem&amp;quot;&amp;amp;#10;ssl-key=&amp;quot;C:/MySQL/mysql-ssl/server-key.pem&amp;quot;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:'''my.ini on Windows''' &amp;lt;pre&amp;gt;ssl-ca=&amp;quot;C:/MySQL/mysql-ssl/ca.pem&amp;quot;&amp;amp;#10;ssl-cert=&amp;quot;C:/MySQL/mysql-ssl/server-cert.pem&amp;quot;&amp;amp;#10;ssl-key=&amp;quot;C:/MySQL/mysql-ssl/server-key.pem&amp;quot;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:'''my.cnf on Linux'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:'''my.cnf on Linux'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:&amp;lt;pre&amp;gt;ssl-ca=/etc/mysql-ssl/ca&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-cert&lt;/del&gt;.pem&amp;amp;#10;ssl-cert=/etc/mysql-ssl/server-cert.pem&amp;amp;#10;ssl-key=/etc/mysql-ssl/server-key.pem&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#:&amp;lt;pre&amp;gt;ssl-ca=/etc/mysql-ssl/ca.pem&amp;amp;#10;ssl-cert=/etc/mysql-ssl/server-cert.pem&amp;amp;#10;ssl-key=/etc/mysql-ssl/server-key.pem&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Restart MySQL server &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Restart MySQL server &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Test if MySQL now has SSL enabled by running this query at the MySQL Prompt &amp;lt;pre&amp;gt;show global variables like 'have_%ssl';&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Test if MySQL now has SSL enabled by running this query at the MySQL Prompt &amp;lt;pre&amp;gt;show global variables like 'have_%ssl';&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maxm</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=MySQL_SSL&amp;diff=2780&amp;oldid=prev</id>
		<title>Maxm: Created page with &quot;Setting up MySQL with SSL allows secure encrypted connections between the MySQL server the MySQL client. This guide will walk you through setting up SSL for MySQL on your VPS....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=MySQL_SSL&amp;diff=2780&amp;oldid=prev"/>
				<updated>2016-02-03T04:13:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Setting up MySQL with SSL allows secure encrypted connections between the MySQL server the MySQL client. This guide will walk you through setting up SSL for MySQL on your VPS....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Setting up MySQL with SSL allows secure encrypted connections between the MySQL server the MySQL client. This guide will walk you through setting up SSL for MySQL on your VPS.&lt;br /&gt;
&lt;br /&gt;
# Generate server and client certificates. You will need to generate 2 certificates pairs, one for the server and one for the client. The official MySQL documentation has a guide on generating the server and client certificates: http://dev.mysql.com/doc/refman/5.7/en/creating-ssl-files-using-openssl.html&lt;br /&gt;
#Once your certificates are generated, create a directory on the server to store the server certificates such as C:\MySQL\mysql-ssl (Windows) or /etc/mysql-ssl (Linux) and copy the server-key.pem, server-cert.pem and ca.pem files there.&lt;br /&gt;
#Edit the my.ini file (Windows) or my.cnf file (Linux). Under the [mysqld] section add the following:&lt;br /&gt;
#:'''my.ini on Windows''' &amp;lt;pre&amp;gt;ssl-ca=&amp;quot;C:/MySQL/mysql-ssl/ca-cert.pem&amp;quot;&amp;amp;#10;ssl-cert=&amp;quot;C:/MySQL/mysql-ssl/server-cert.pem&amp;quot;&amp;amp;#10;ssl-key=&amp;quot;C:/MySQL/mysql-ssl/server-key.pem&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:'''my.cnf on Linux'''&lt;br /&gt;
#:&amp;lt;pre&amp;gt;ssl-ca=/etc/mysql-ssl/ca-cert.pem&amp;amp;#10;ssl-cert=/etc/mysql-ssl/server-cert.pem&amp;amp;#10;ssl-key=/etc/mysql-ssl/server-key.pem&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Restart MySQL server &lt;br /&gt;
#Test if MySQL now has SSL enabled by running this query at the MySQL Prompt &amp;lt;pre&amp;gt;show global variables like 'have_%ssl';&amp;lt;/pre&amp;gt;&lt;br /&gt;
#If you get the following output, it means SSL is properly enabled on your MySQL server &amp;lt;pre&amp;gt;mysql&amp;gt; show global variables like 'have_%ssl';&amp;amp;#10;+---------------+-------+&amp;amp;#10;| Variable_name | Value |&amp;amp;#10;+---------------+-------+&amp;amp;#10;| have_openssl  | YES   |&amp;amp;#10;| have_ssl      | YES   |&amp;amp;#10;+---------------+-------+&amp;amp;#10;2 rows in set (0.00 sec)&amp;lt;/pre&amp;gt;&lt;br /&gt;
#If the value is not set to yes, you will need to look at the MySQL error log for more information. The MySQL log is normally found in C:\MySQL\data\mysqld.err (Windows) or /var/log/mysqld.log (Linux).&lt;br /&gt;
#To create a user that can only connect to your MySQL server using SSL, run the following query at the MySQL prompt: &amp;lt;pre&amp;gt;GRANT ALL PRIVILEGES ON *.* TO `user_name`@`%` IDENTIFIED BY 'password' REQUIRE SSL;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#You will need to use the generated client certificate/key pairs (from Step 1) to be connect MySQL using SSL&lt;br /&gt;
&lt;br /&gt;
[[Category: MySQL]]&lt;br /&gt;
[[Category: VPS]]&lt;/div&gt;</summary>
		<author><name>Maxm</name></author>	</entry>

	</feed>