<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Justin Samuel &#187; Linux</title>
	<atom:link href="http://www.justinsamuel.com/categories/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinsamuel.com</link>
	<description>Security, Linux, Development</description>
	<lastBuildDate>Thu, 24 Dec 2009 19:29:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>php 5.1.4 rpms for rhel4 added (with apc)</title>
		<link>http://www.justinsamuel.com/2006/05/25/php-514-rpms-for-rhel4-added-with-apc/</link>
		<comments>http://www.justinsamuel.com/2006/05/25/php-514-rpms-for-rhel4-added-with-apc/#comments</comments>
		<pubDate>Fri, 26 May 2006 03:45:06 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[RPMs]]></category>

		<guid isPermaLink="false">http://www.justinsamuel.com/uncategorized/11/php-514-rpms-for-rhel4-added-with-apc</guid>
		<description><![CDATA[php 5.1.4 rpms for rhel 4 have been added to the rpm downloads section. These are based off of the current fedora core 5 rpms with the following changes: * shared hosting security: removed posix functions [shared hosting security] * removed pcntl functions [shared hosting security] * added dummy domxml package [compatibility with other packages [...]]]></description>
			<content:encoded><![CDATA[<p>php 5.1.4 rpms for rhel 4 have been added to the rpm downloads section. These are based off of the current fedora core 5 rpms with the following changes:</p>
<p>    * shared hosting security: removed posix functions [shared hosting security]<br />
    * removed pcntl functions [shared hosting security]<br />
    * added dummy domxml package [compatibility with other packages that depend on it, such as certain plesk 8 packages]</p>
<p>This build does have cgi compiled with fastcgi support.</p>
<p>Additionally, there is a corresponding php-apc 3.1.0 rpm available in the downloads section for this build of php.<span id="more-11"></span></p>
<p>To get these files with up2date, add my rpm signing key:<br />
rpm &#8211;import http://www.justinsamuel.com/downloads/rpms/RPM-GPG-KEY.js.txt</p>
<p>And add this line to your /etc/sysconfig/rhn/sources:<br />
yum justinsamuel-com http://www.justinsamuel.com/downloads/rpms/redhat/el4/en/$ARCH/js/</p>
<p>&#8212;<br />
topics: rh4, rhel4, red hat enterprise linux 4, centos4, cent os 4, php5, apc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/05/25/php-514-rpms-for-rhel4-added-with-apc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scponly rpms with chroot enabled added for rhel4</title>
		<link>http://www.justinsamuel.com/2006/03/30/scponly-rpms-with-chroot-enabled-added-for-rhel4/</link>
		<comments>http://www.justinsamuel.com/2006/03/30/scponly-rpms-with-chroot-enabled-added-for-rhel4/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 15:53:58 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[RPMs]]></category>
		<category><![CDATA[Server Security]]></category>

		<guid isPermaLink="false">http://www.justinsamuel.com/linux/server-security/10/scponly-rpms-with-chroot-enabled-added-for-rhel4</guid>
		<description><![CDATA[i&#8217;ve added scponly rpms with chroot enabled for rhel4. get the files here or by apt/yum. this is more useful in a shared hosting environment than the rpms found at DAG and elsewhere that don&#8217;t have chroot enabled. to use this, for example on a plesk box to allow domains to use sftp without having [...]]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve added scponly rpms with chroot enabled for rhel4.  <a href="http://www.justinsamuel.com/downloads/rpms/redhat/el4/en/i386/RPMS.js/">get the files here</a> or by apt/yum.  this is more useful in a shared hosting environment than the rpms found at DAG and elsewhere that don&#8217;t have chroot enabled.</p>
<p>to use this, for example on a plesk box to allow domains to use sftp without having to give them a chroot&#8217;ed bash shell, do the following:<span id="more-10"></span></p>
<p>- install the scponly rpm from the downloads area<br />
- add the following line to your /etc/shells file<br />
<code>/usr/sbin/scponlyc</code><br />
- set any domain you want to have sftp access without any other shell access to use this shell.<br />
- optionally, edit your domain templates and make the default shell this one and remove ability for clients to change the shell for a domain</p>
<p>note that this will only allow domains to use sftp but not scp (at least on a redhat box).  this is because plesk decided to put the scp binary for a site&#8217;s chroot someone different than it exists in the rest of the system, and so it&#8217;s not where the scponlyc shell will look for it.  so, just keep that in mind in case anyone complains sftp works but not scp.</p>
<p>if you want to have scp work for a domain, hard link the domain&#8217;s bin/scp to usr/bin/scp.  if you want, you can even make the change to the chroot directory so that newly created domains have scp available, too.  and if you&#8217;re brave, you can use the chrootmng tool to setup existing domains with your changes to the chroot directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/03/30/scponly-rpms-with-chroot-enabled-added-for-rhel4/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>php APC rpms added for php 5.1.2 / APC 3.0.10 / rhel 4</title>
		<link>http://www.justinsamuel.com/2006/03/15/php-apc-rpms-added-for-php-512-apc-3010-rhel-4/</link>
		<comments>http://www.justinsamuel.com/2006/03/15/php-apc-rpms-added-for-php-512-apc-3010-rhel-4/#comments</comments>
		<pubDate>Wed, 15 Mar 2006 08:11:04 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[RPMs]]></category>

		<guid isPermaLink="false">http://www.justinsamuel.com/uncategorized/2006/03/php-apc-rpms-added-for-php-512-apc-3010-rhel-4/8/</guid>
		<description><![CDATA[I&#8217;ve added php-apc rpms for php 5.1.2 on rhel4, using the current stable release of APC (3.0.10). get the files here or by apt/yum. Additional notes: Trying to enable APC for all sites on a server that has the sites running php though fastcgi (with a very low shm_size) resulted in odd behaviour on some [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added php-apc rpms for php 5.1.2 on rhel4, using the current stable release of APC (3.0.10).   <a href="http://www.justinsamuel.com/downloads/rpms/redhat/el4/en/i386/RPMS.js/">get the files here</a> or by apt/yum.  Additional notes: <span id="more-8"></span></p>
<p>Trying to enable APC for all sites on a server that has the sites running php though fastcgi (with a very low shm_size) resulted in odd behaviour on some sites.  An shm_size of 3 or 4MB on a site running drupal produced errors of apc_sma_free: could not locate address, but 2MB seemed to work fine.  Other sites handled the setting of 3 or 4MB just fine.  I didn&#8217;t test any further as all i really needed to verify for myself was that enabling APC for all sites wasn&#8217;t a good plan.  I&#8217;ll stick to turning it on in each sites&#8217;s php.ini for now for those that are very heavily trafficked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/03/15/php-apc-rpms-added-for-php-512-apc-3010-rhel-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Create a self-signed (wildcard) SSL certificate</title>
		<link>http://www.justinsamuel.com/2006/03/11/howto-create-a-self-signed-wildcard-ssl-certificate/</link>
		<comments>http://www.justinsamuel.com/2006/03/11/howto-create-a-self-signed-wildcard-ssl-certificate/#comments</comments>
		<pubDate>Sun, 12 Mar 2006 06:35:44 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.justinsamuel.com/howtos/2006/03/howto-create-a-self-signed-wildcard-ssl-certificate/6/</guid>
		<description><![CDATA[The following commands are all you need to create a self-signed (wildcard, if you want) SSL certificate: mkdir /usr/share/ssl/certs/hostname.domain.com cd /usr/share/ssl/certs/hostname.domain.com (umask 077 &#038;&#038; touch host.key host.cert host.info host.pem) openssl genrsa 2048 > host.key openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert ...[enter *.domain.com for the Common Name]... openssl x509 -noout [...]]]></description>
			<content:encoded><![CDATA[<p>The following commands are all you need to create a self-signed (wildcard, if you want) SSL certificate:<span id="more-6"></span></p>
<p><code>mkdir /usr/share/ssl/certs/hostname.domain.com<br />
cd /usr/share/ssl/certs/hostname.domain.com<br />
(umask 077 &#038;&#038; touch host.key host.cert host.info host.pem)<br />
openssl genrsa 2048 > host.key<br />
openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert<br />
...[enter *.domain.com for the Common Name]...<br />
openssl x509 -noout -fingerprint -text < host.cert > host.info<br />
cat host.cert host.key > host.pem<br />
chmod 400 host.key host.pem</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/03/11/howto-create-a-self-signed-wildcard-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HOWTO: Setup SSL certificates for mail services (pop3s, imaps, smtps) on Plesk / Courier-Imap / Qmail</title>
		<link>http://www.justinsamuel.com/2006/03/11/howto-setup-ssl-certificates-for-mail-pop3s-imaps-smtps-on-plesk-courier-imap-qmail/</link>
		<comments>http://www.justinsamuel.com/2006/03/11/howto-setup-ssl-certificates-for-mail-pop3s-imaps-smtps-on-plesk-courier-imap-qmail/#comments</comments>
		<pubDate>Sun, 12 Mar 2006 06:23:44 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Server Security]]></category>

		<guid isPermaLink="false">http://www.justinsamuel.com/linux/server-security/2006/03/howto-setup-ssl-certificates-for-mail-pop3s-imaps-smtps-on-pleskcourier-imapqmail/5/</guid>
		<description><![CDATA[This howto will show you how to setup an SSL certificate on a Plesk server so that it will be used when people connect through secure pop, smtp and imap. To do the following, you need a certificate. It can be self signed or CA signed. Using a self-signed cert will of course result in [...]]]></description>
			<content:encoded><![CDATA[<p>This howto will show you how to setup an SSL certificate on a Plesk server so that it will be used when people connect through secure pop, smtp and imap.<span id="more-5"></span></p>
<p>To do the following, you need a certificate.  It can be self signed or CA signed.  Using a self-signed cert will of course result in some browser warnings for those who have not added the certificate as locally trusted on their computer.</p>
<p>You will want a copy of your cert in PEM format.  If you don&#8217;t have this already, just create a single file with the private key followed by the certificate.  That&#8217;s it.  For example, just run the following (using correct paths to your private key and certificate files):</p>
<p><code>touch host.pem<br />
chmod 600 host.pem<br />
cat host.key host.crt &gt; host.pem</code></p>
<p>and you&#8217;ll now have a PEM file.  It should look like this:</p>
<p><code>-----BEGIN CERTIFICATE-----<br />
...<br />
-----END CERTIFICATE-----<br />
-----BEGIN RSA PRIVATE KEY-----<br />
...<br />
-----END RSA PRIVATE KEY-----</code></p>
<h3>Courier-IMAP (pop3s and imaps)</h3>
<p>The first step is to set it up for pop3s and imaps by backing up and replacing the certs at:</p>
<p>/usr/share/courier-imap/pop3d.pem<br />
and<br />
/usr/share/courier-imap/imapd.pem</p>
<p>with your PEM file.</p>
<p>If you have a chained cert, you need to do one more thing.  You need to tell courier-imap about it.  Backup and edit both of the following files:</p>
<p>/etc/courier-imap/pop3d-ssl<br />
/etc/courier-imap/imapd-ssl</p>
<p>and set the value TLS_TRUSTCERTS in each file to the path to the certificate chain.  For example, drop a copy of the certificate chain into a file at:</p>
<p>/usr/share/courier-imap/chain.crt</p>
<p>and then set the value for TLS_TRUSTCERTS in the pop3d-ssl and imapd-ssl files like so:</p>
<p><code>TLS_TRUSTCERTS=/usr/share/courier-imap/chain.crt</code></p>
<p>now restart courier-imap:</p>
<p><code>service courier-imap restart</code></p>
<h3>Qmail (smtps)</h3>
<p>To setup your certificate for use with smtps, copy your PEM file to:</p>
<p>/var/qmail/control/servercert.pem</p>
<p>and if you have a CA certs, append them to that same file (so you should have all of the CA chained certs right after your own certificate in that file).</p>
<p>now restart qmail:</p>
<p><code>service qmail restart</code></p>
<h3>Test everything</h3>
<p>You can test these newly installed certificates to make sure everything is working with the following:</p>
<p><code>openssl s_client -connect [host]:993<br />
openssl s_client -connect [host]:995<br />
openssl s_client -connect [host]:465</code></p>
<p>Note that the imaps test (port 465) can take a while to respond when testing like this.</p>
<p>And, of course, you can test these (and should) by trying to use an actual email account to send and receive mail using these protocols.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/03/11/howto-setup-ssl-certificates-for-mail-pop3s-imaps-smtps-on-plesk-courier-imap-qmail/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>php 5.1.2 rpms for centos 4 (rhel 4)</title>
		<link>http://www.justinsamuel.com/2006/03/08/php-512-rpms-for-centos-4-rhel-4/</link>
		<comments>http://www.justinsamuel.com/2006/03/08/php-512-rpms-for-centos-4-rhel-4/#comments</comments>
		<pubDate>Thu, 09 Mar 2006 05:44:16 +0000</pubDate>
		<dc:creator>justin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[RPMs]]></category>

		<guid isPermaLink="false">http://justinsamuel.com/archives/2006-03-08/php-512-rpms-for-centos-4-rhel-4/3/</guid>
		<description><![CDATA[php 5.1.2 rpms for centos 4 (rhel 4) have been added to the rpm download page. These are based off of the current fedora core 5 test 3 rpms with the following security changes for shared hosting environments: removed posix functions (were enabled for cgi, cli and apache module) removed pcntl functions (were enabled for [...]]]></description>
			<content:encoded><![CDATA[<p>php 5.1.2 rpms for centos 4 (rhel 4) have been added to the <a href="http://www.justinsamuel.com/downloads/rpms/redhat/el4/en/i386/RPMS.js/">rpm download page</a>.  These are based off of the current fedora core 5 test 3 rpms with the following security changes for shared hosting environments:</p>
<ul>
<li>removed posix functions (were enabled for cgi, cli and apache module)</li>
<li>removed pcntl functions (were enabled for cgi)</li>
</ul>
<p>This build does have cgi compiled with fastcgi support (the fedora php5 releases have that).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinsamuel.com/2006/03/08/php-512-rpms-for-centos-4-rhel-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
