<?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>Mon, 20 May 2013 23:18:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Artur Ejsmont's Blog: How to properly secure remote API calls over SSL from PHP code]]></title>
      <guid>http://www.phpdeveloper.org/news/16877</guid>
      <link>http://www.phpdeveloper.org/news/16877</link>
      <description><![CDATA[<p>
<i>Artur Ejsmont</i> has a new post with a passionate call to arms for anyone who thinks that just because their URL has "https" in it, it's secure. He presents his suggestion on <a href="http://artur.ejsmont.org/blog/content/how-to-properly-secure-remote-api-calls-from-php-application">how to properly secure SSL API calls</a> for your PHP application.
</p>
<blockquote>
Lets make something clear from the very start: JUST BECAUSE THERE IS https:// IN THE URL OF THE REMOTE SERVICE IT DOES NOT MEAN THE CONNECTION IS SECURE! I am sorry for the tone of this post but i am enraged by how popular this issue is online. If you ask why i suggest a little experiment [involving changing your hosts file and using a self-signed certificate].
</blockquote>
<p>
The issue he spotlights is all too common - a server serves up SSL pages but doesn't actually verify the certificate in the process. He gives a bad example of how some scripts handle this issue using the CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST to turn off this verification - a very bad idea. To protect yourself from any kind of man-in-the-middle or DNS hijack issues, you should leave these on. 
</p>]]></description>
      <pubDate>Mon, 19 Sep 2011 13:56:00 -0500</pubDate>
    </item>
    <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[PHPBuilder.com: Write an Ajax-driven Login Application in PHP Using SSL/TLS]]></title>
      <guid>http://www.phpdeveloper.org/news/15102</guid>
      <link>http://www.phpdeveloper.org/news/15102</link>
      <description><![CDATA[<p>
On the PHPBuilder.com site today there's <a href="http://www.phpbuilder.com/columns/Login-Ajax-SSL/Octavia_Anghel090810.php3">a new tutorial posted</a> from <i>Octavia Anghel</i> about creating a login for your site that's powered by Ajax and uses a bit more security than normal. It includes hooks to use the Ajax Server Secure Layer or an OpenSSL connection.
</p>
<blockquote>
In this article you will learn how to write a login application in PHP using Ajax and SSL/TLS in two ways either using aSSL (Ajax Server Secure Layer), a library that implements a technology similar to SSL without HTTPS or a simple Ajax and OpenSSL, an open source implementation of the SSL and TLS protocols.
</blockquote>
<p>
They start with the aSSL method and link you to <a href="http://assl.sullof.com/assl/download.asp?file=assl1.2.1PHP4.zip">a download</a> of the tool as well as some sample code to help you get started passing data to it via the session. The second example shows the OpenSSL method, mostly consisting of checking on the server side of the certificate that's passed along with the request.
</p>]]></description>
      <pubDate>Thu, 09 Sep 2010 10:29:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: PayPal payment with encryption]]></title>
      <guid>http://www.phpdeveloper.org/news/12002</guid>
      <link>http://www.phpdeveloper.org/news/12002</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> points out a new class in his <a href="http://dev.juokaz.com/php/paypal-payment-with-encryption">latest blog post</a> that can be used to make secure connections over to PayPal (encrypted) using their <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=p/xcl/rec/ewp-intro-outside">Encrypted Website Payment</a> method.
</p>
<blockquote>
In my situation, PayPal is only used to pay for orders - cart and order setup is done in our shop, so I do not want to have additional problems with users changing orders numbers, amount to be paid, etc. [...] Only PayPal knows how to decrypt it, because it uses public key encryption technology (you need to upload your certificate in PayPal account).
</blockquote>
<p>
Some sample usage code is included as is a <a href="http://www.pdncommunity.com/pdn/attachments/pdn/ewp/87/1/paypalewp.php">link to the class</a> itself. His example takes a payment transaction including the item name, amount and currency type and sends it off to the PayPal servers in a connection protected by certificates.
</p>]]></description>
      <pubDate>Mon, 23 Feb 2009 12:04:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: O'Reilly Offers PHP/SQL Certificate Series]]></title>
      <guid>http://www.phpdeveloper.org/news/11411</guid>
      <link>http://www.phpdeveloper.org/news/11411</link>
      <description><![CDATA[<p>
The O'Reilly School of Technology now offers a series of PHP certification classes developers can attend to learn more about PHP and SQL on a variety of projects.
</p>
<blockquote>
The PHP/SQL Programming Certificate Series is comprised of four courses covering beginning to advanced PHP programming, beginning to advanced database programming using the SQL language, database theory, and integrated Web 2.0 programming using PHP and SQL on the Unix/Linux mySQL platform.
</blockquote>
<p>They currently offer three courses:</p>
<ul>
<li><a href="http://oreillyschool.com/courses/introphp/">Introduction to PHP</a>
<li><a href="http://oreillyschool.com/courses/phpsql1/">PHP/SQL 1: Introduction to Database Programming</a>
<li><a href="http://oreillyschool.com/courses/phpsql2/">PHP/SQL 2: Relational Theory and Logical Design</a>
</ul>
<p>
Another class will be released in December 2008 - <a href="http://oreillyschool.com/courses/phpsql3/">PHP/SQL 3: Seamless Web 2.0 Integration </a>. The classes come it at a bit under $400 USD and include access to an online sandbox for testing (complete with web server, unix-shell and database installations). Completion of all four courses earns the student a certification from the <a href="http://oreillyschool.com/why/illinois.php">University of Illinois</a>'s Professional Development department.
</p>]]></description>
      <pubDate>Fri, 14 Nov 2008 12:03:35 -0600</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>
