<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.iredmail.org/wiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>IRedMail/FAQ/Generate.New.SSL.Cert.Key - Revision history</title>
		<link>http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Generate.New.SSL.Cert.Key&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5</generator>
		<lastBuildDate>Sat, 25 May 2013 05:45:16 GMT</lastBuildDate>
		<item>
			<title>ZhangHuangbin at 13:38, 15 September 2011</title>
			<link>http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Generate.New.SSL.Cert.Key&amp;diff=1845&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&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 valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:38, 15 September 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_TOC_&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;__TOC__&lt;/ins&gt;&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;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Summary =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Summary =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-25 05:45:16 --&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 15 Sep 2011 13:38:42 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:IRedMail/FAQ/Generate.New.SSL.Cert.Key</comments>		</item>
		<item>
			<title>ZhangHuangbin:&amp;#32;Created page with '_TOC_  = Summary =  iRedMail generates SSL cert file and private key file during installation, validity period is 3650 days (10 years) by default.  This tutorial is used to expla…'</title>
			<link>http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Generate.New.SSL.Cert.Key&amp;diff=1844&amp;oldid=prev</link>
			<description>&lt;p&gt;Created page with &amp;#39;_TOC_  = Summary =  iRedMail generates SSL cert file and private key file during installation, validity period is 3650 days (10 years) by default.  This tutorial is used to expla…&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;_TOC_&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
&lt;br /&gt;
iRedMail generates SSL cert file and private key file during installation, validity period&lt;br /&gt;
is 3650 days (10 years) by default.&lt;br /&gt;
&lt;br /&gt;
This tutorial is used to explain how to generate new SSL cert file and private key file&lt;br /&gt;
with shell script file shipped in iRedMail. e.g. iRedMail-0.7.3/tools/generate_ssl_keys.sh.&lt;br /&gt;
&lt;br /&gt;
= Steps =&lt;br /&gt;
&lt;br /&gt;
Please open '''tools/generate_ssl_keys.sh''', it's self-documented.&lt;br /&gt;
We have detailed usage in this file, quoted below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# USAGE:&lt;br /&gt;
# 1) Edit variables which starts with TLS_ below, then save file.&lt;br /&gt;
# 2) Execute shell command:&lt;br /&gt;
#&lt;br /&gt;
#       # bash generate_ssl_keys.sh&lt;br /&gt;
#&lt;br /&gt;
#    It will create two new files under CURRENT directory:&lt;br /&gt;
#&lt;br /&gt;
#       - certs/iRedMail_CA.pem: Used to replace file on iRedMail server:&lt;br /&gt;
#           + on RHEL/CentOS/Scientific Linux: /etc/pki/tls/certs/iRedMail_CA.pem&lt;br /&gt;
#           + on Debian/Ubuntu/openSUSE: /etc/ssl/certs/iRedMail_CA.pem&lt;br /&gt;
#           + on FreeBSD: /etc/ssl/certs/iRedMail_CA.pem&lt;br /&gt;
#       - private/iRedMail.key: Used to replace file on iRedMail server:&lt;br /&gt;
#           + on RHEL/CentOS/Scientific Linux: /etc/pki/tls/private/iRedMail.key&lt;br /&gt;
#           + on Debian/Ubuntu/openSUSE: /etc/ssl/private/iRedMail.key&lt;br /&gt;
#           + on FreeBSD: /etc/ssl/private/iRedMail.key&lt;br /&gt;
#&lt;br /&gt;
# 3) Grant read access to all users. e.g. on RHEL/CentOS/Scientific Linux:&lt;br /&gt;
#&lt;br /&gt;
#   # chmod +r /etc/ssl/certs/iRedMail_CA.pem&lt;br /&gt;
#   # chmod +r /etc/ssl/private/iRedMail.key&lt;br /&gt;
#&lt;br /&gt;
#   If you need more restrict file permission, please use file system ACL instead.&lt;br /&gt;
#   Refer to command 'setfacl' and 'getfacl' for more detail.&lt;br /&gt;
#&lt;br /&gt;
# 4) Restart all services which provides SSL secure connection. e.g. http,&lt;br /&gt;
#    dovecot, postfix, etc. A system reboot should be easier if possible.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
export HOSTNAME=&amp;quot;$(hostname -f)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# SSL key related settings.&lt;br /&gt;
# Country.&lt;br /&gt;
export TLS_COUNTRY='CN'&lt;br /&gt;
&lt;br /&gt;
# State.&lt;br /&gt;
export TLS_STATE='GuangDong'&lt;br /&gt;
&lt;br /&gt;
# City.&lt;br /&gt;
export TLS_CITY='ShenZhen'&lt;br /&gt;
&lt;br /&gt;
# Company name here, e.g. Apple Inc.&lt;br /&gt;
export TLS_COMPANY=&amp;quot;${HOSTNAME}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Department name.&lt;br /&gt;
export TLS_DEPARTMENT='IT'&lt;br /&gt;
&lt;br /&gt;
# Hostname of your mail server.&lt;br /&gt;
export TLS_HOSTNAME=&amp;quot;${HOSTNAME}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Server admininistrator's email address.&lt;br /&gt;
export TLS_ADMIN=&amp;quot;root@${HOSTNAME}&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 15 Sep 2011 13:38:06 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:IRedMail/FAQ/Generate.New.SSL.Cert.Key</comments>		</item>
	</channel>
</rss>