<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — SSL]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic16.xml" />
	<updated>2009-05-10T01:41:17Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic16-ssl.html</id>
		<entry>
			<title type="html"><![CDATA[Re: SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post51.html#p51" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>simonbouchard wrote:</cite><blockquote><p>I got the following error message : </p><p> </p><div class="codebox"><pre><code>root@mx01 [~/iRedMail-0.4.0]# setfacl -m u:ldap:r-- /etc/pki/iRedMail/SSL_Key.pem
setfacl: Option -m: Invalid argument near character 3</code></pre></div></blockquote></div><p>It works for me here. No idea why it happened. <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-05-10T01:41:17Z</updated>
			<id>http://www.iredmail.org/forum/post51.html#p51</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post50.html#p50" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>simonbouchard wrote:</cite><blockquote><p>It worked <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Thank you for your time!!</p></blockquote></div><p>Forget to metion file permission: iredmail shares this ssl key by default, but file permission is 044, other programs can&#039;t read it. You must set advanced file system control.</p><p>Try this command:<br /></p><div class="codebox"><pre><code>$ cd /path/to/iRedMail-x.y.z/
$ grep -r &#039;setfacl&#039; *</code></pre></div></blockquote></div><p>I got the following error message : </p><p> </p><div class="codebox"><pre><code>root@mx01 [~/iRedMail-0.4.0]# setfacl -m u:ldap:r-- /etc/pki/iRedMail/SSL_Key.pem
setfacl: Option -m: Invalid argument near character 3</code></pre></div>]]></content>
			<author>
				<name><![CDATA[simonbouchard]]></name>
				<uri>http://www.iredmail.org/forum/user15.html</uri>
			</author>
			<updated>2009-05-09T19:38:09Z</updated>
			<id>http://www.iredmail.org/forum/post50.html#p50</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post49.html#p49" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>simonbouchard wrote:</cite><blockquote><p>It worked <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Thank you for your time!!</p></blockquote></div><p>Forget to metion file permission: iredmail shares this ssl key by default, but file permission is 044, other programs can&#039;t read it. You must set advanced file system control.</p><p>Try this command:<br /></p><div class="codebox"><pre><code>$ cd /path/to/iRedMail-x.y.z/
$ grep -r &#039;setfacl&#039; *</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-05-09T16:47:57Z</updated>
			<id>http://www.iredmail.org/forum/post49.html#p49</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post48.html#p48" />
			<content type="html"><![CDATA[<p>It worked <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Thank you for your time!!</p>]]></content>
			<author>
				<name><![CDATA[simonbouchard]]></name>
				<uri>http://www.iredmail.org/forum/user15.html</uri>
			</author>
			<updated>2009-05-09T16:04:51Z</updated>
			<id>http://www.iredmail.org/forum/post48.html#p48</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post47.html#p47" />
			<content type="html"><![CDATA[<p>Please read iRedMail-x.y.z/functions/packages.sh:<br /></p><div class="codebox"><pre><code>gen_pem_key()
{
    # Create necessary directories.
    [ -d ${SSL_FILE_DIR} ] || mkdir -p ${SSL_FILE_DIR}

    openssl req \
        -x509 -nodes -days 3650 -newkey rsa:1024 \
        -subj &quot;/C=${TLS_COUNTRY}/ST=${TLS_STATE}/L=${TLS_CITY}/O=${TLS_COMPANY}/OU=${TLS_DEPARTMENT}/CN=${TLS_HOSTNAME}/emailAddress=${TLS_ADMIN}/&quot; \
        -out ${SSL_CERT_FILE} -keyout ${SSL_KEY_FILE} &gt;/dev/null 2&gt;&amp;1

    # Set correct file permission.
    chmod 0444 ${SSL_CERT_FILE}
    chmod 0400 ${SSL_KEY_FILE}
}</code></pre></div><p>All variables are defined in iRedMail-x.y.z/conf/global.</p><p>Good luck.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-05-09T15:44:06Z</updated>
			<id>http://www.iredmail.org/forum/post47.html#p47</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SSL]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post46.html#p46" />
			<content type="html"><![CDATA[<p>Greeting,</p><p>I&#039;ve done a mistake during the setup process ; the SSL certificate for Postfix is wrong (wrong domain name) and I would like to generate a new one ; does anyone know how to generate and install a new SSL certificate ?</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[simonbouchard]]></name>
				<uri>http://www.iredmail.org/forum/user15.html</uri>
			</author>
			<updated>2009-05-09T15:32:53Z</updated>
			<id>http://www.iredmail.org/forum/post46.html#p46</id>
		</entry>
</feed>
