<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 06:39:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Vanessa Vasile's Blog: Simple Way to Parse an x509 Certificate with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15384</guid>
      <link>http://www.phpdeveloper.org/news/15384</link>
      <description><![CDATA[<p>
In a new post to her blog, <i>Vanessa Vasile</i> has <a href="http://www.v-nessa.net/2010/11/03/simple-way-to-parse-an-x509-certificate-with-php">a reminder</a> about a built-in PHP function that can help quite a bit when you're working with SSL certificates - <a href="http://us3.php.net/openssl_x509_parse">openssl_x509_parse</a>.
</p>
<blockquote>
PHP has a nifty little function for parsing an x.509 SSL certificate into an array to easily pull out the elements: <a href="http://us3.php.net/openssl_x509_parse">openssl_x509_parse</a>. Essentially, all you need to do is load up the contents of the certificate, either through a file or POST value, and enclose it in the array.
</blockquote>
<p>
She includes a code snippet that pulls in the certificate contents, calls <a href="http://us3.php.net/openssl_x509_parse">the function</a> and puts it into an array that's easy to loop through and get values and subvalues from the results. The PHP.net manual page doesn't have a documented list of the return values because a constant result hasn't been defined. You'll need at least PHP 5.2 to use the function.
</p>]]></description>
      <pubDate>Thu, 04 Nov 2010 11:19:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Security.net: X.509 PKI login with PHP and Apache]]></title>
      <guid>http://www.phpdeveloper.org/news/10312</guid>
      <link>http://www.phpdeveloper.org/news/10312</link>
      <description><![CDATA[<p>
<i>Christopher Kunz</i> has relaunched his php-security.net domain with a brand new blog and a <a href="http://www.php-security.net/archives/3-X.509-PKI-login-with-PHP-and-Apache.html">new article</a> posted today - "X.509 PKI login with PHP and Apache".
</p>
<blockquote>
Since grid computing (that's what I'm currently doing) also is very much about Single-sign on and delegation of rights, username/password authentication schemes don't quite do it for us. Thus, a PKI (public key infrastructure) based on X.509 is employed. 
</blockquote>
<p>
He <a href="http://www.php-security.net/archives/3-X.509-PKI-login-with-PHP-and-Apache.html">explains</a> the acronym soup by defining the process as advanced means of "showing the web who you are". He explains some of the basics about the certificates and who good candidates for this type of authentication are. Then the tech starts - how to get Apache configured to use them and how to use them in PHP to authenticate the external user (requiring OpenSSL compiled in to access the needed functions). 
</p>]]></description>
      <pubDate>Fri, 30 May 2008 17:05:59 -0500</pubDate>
    </item>
  </channel>
</rss>
