<p>I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own OpenID provider, just because it's harder :) How do you do this in Ubuntu?</p>

<p>Edit: Replacing 'server' with the correct term OpenID provider (Identity provider would also be correct according to <a href="http://en.wikipedia.org/wiki/Openid#Using_OpenID" rel="noreferrer">wikipedia</a>).</p>

[{'answer_id': 28604, 'author': 'Damien B', 'author_id': 3069, 'author_profile': 'https://Stackoverflow.com/users/3069', 'pm_score': 4, 'selected': True, 'text': '<p>I personnally used <a href="https://siege.org/phpmyid.html" rel="nofollow noreferrer">phpMyID</a> just for StackOverflow. It\'s a simple two-files PHP script to put somewhere on a subdomain. Of course, it\'s not as easy as installing a .deb, but since OpenID relies completely on HTTP, I\'m not sure it\'s advisable to install a self-contained server...</p>\n'}, {'answer_id': 29691, 'author': 'Konrad Rudolph', 'author_id': 1968, 'author_profile': 'https://Stackoverflow.com/users/1968', 'pm_score': 3, 'selected': False, 'text': '<p>I\'ve actually done this (set up my own server using phpMyID). It\'s very easy and works quite well. One thing that annoys me to no end is the use of HTML redirects instead of HTTP. I changed that manually, based on some information gotten in the <a href="https://www.siege.org/forum/viewforum.php?id=8" rel="noreferrer">phpMyID forum</a>.</p>\n\n<p>However, I have switched to <a href="https://www.myopenid.com/" rel="noreferrer">myOpenId</a> in the meantime. Rolling an own provider is fun and games but <em>it just isn\'t secure</em>! There are two issues:</p>\n\n<ul>\n<li>More generally, you have to act on faith. phpMyID is great but it\'s developed in someone\'s spare time. There could be many undetected security holes in it –\xa0and there have been some, in the past. While this of course applies to all security-related software, I believe the problem is potentially more severe with software developed in spare time, especially since the code is far from perfect in my humble opinion.</li>\n<li>Secondly, OpenID is highly susceptible to screen scraping and mock interfaces. It\'s just too easy for an attacker to emulate the phpMyID interface to obtain your credentials for another site. myOpenId offers two very important solutions to the problem.\n\n<ul>\n<li>The first is its use of a cookie-stored picture that is embedded in the login page. If anyone screen-scapes the myOpenId login page, this picture will be missing and the fake can easily be identified.</li>\n<li>Secondly, myOpenId supports sign-in using strongly signed certificates that can be installed in the web browser.</li>\n</ul></li>\n</ul>\n\n<p>I still have phpMyID set up as an alternative provider using <a href="http://yadis.org/wiki/Main_Page" rel="noreferrer">Yadis</a> but I wouldn\'t use it as a login on sites that I don\'t trust.</p>\n\n<p>In any case, read Sam Ruby\'s <a href="http://www.intertwingly.net/blog/2007/01/03/OpenID-for-non-SuperUsers" rel="noreferrer">tutorial</a>!</p>\n'}, {'answer_id': 35659, 'author': 'tonygambone', 'author_id': 3344, 'author_profile': 'https://Stackoverflow.com/users/3344', 'pm_score': 3, 'selected': False, 'text': '<p>You might also look into setting up your own site as a delegate for another OpenID provider.  That way, you can use your own custom URL, but not worry about security and maintenance as mentioned already.  However, it\'s not very difficult, so it may not meet your criteria :)</p>\n\n<p>As an example, you would add this snippet of HTML to the page at your desired OpenID URL if you are <a href="http://claimid.com/openid" rel="noreferrer">using ClaimID</a> as the OpenID provider:</p>\n\n<pre><code>&lt;link rel="openid.server" href="http://openid.claimid.com/server" /&gt;\n&lt;link rel="openid.delegate" href="http://openid.claimid.com/USERNAME" /&gt;\n</code></pre>\n\n<p>So when OpenID clients access your URL, they "redirect" themselves to the actual provider.</p>\n'}, {'answer_id': 1688731, 'author': 'Tom', 'author_id': 42754, 'author_profile': 'https://Stackoverflow.com/users/42754', 'pm_score': 0, 'selected': False, 'text': '<p>I totally understand where you\'re coming from with this question. I already had a OpenID at <a href="http://www.myopenid.com" rel="nofollow noreferrer">www.myopenid.com</a> but it feels a bit weird relying on a 3rd party for such an important login (a.k.a my permanent &quot;home&quot; on the internet).</p>\n<p>Luckily, It is easy to move to using your own server as a openID server - in fact, it can be done with just two files with phpMyID.</p>\n<ul>\n<li>Download &quot;phpMyID-0.9.zip&quot; from <a href="http://siege.org/projects/phpMyID/" rel="nofollow noreferrer">http://siege.org/projects/phpMyID/</a></li>\n<li>Move it to your server and unzip it to view the README file which explains everything.</li>\n<li>The zip has two files: <em>MyID.config.php, MyID.php</em>. I created a directory called <code>&lt;mydocumentroot&gt;/OpenID</code> and renamed <em>MyID.config.php</em> to <em>index.php</em>. This means my OpenID URL will be very cool: <code>http://&lt;mywebsite&gt;/OpenID</code></li>\n<li>Decide on a username and password and then create a hash of them using: <code>echo -n \'&lt;myUserNam&gt;:phpMyID:&lt;myPassword&gt;\' | openssl md5</code></li>\n<li>Open <em>index.php</em> in a text editor and add the username and password hash in the placeholder. Save it.</li>\n<li>Test by browsing to <code>http://&lt;mywebsite&gt;/OpenID/</code></li>\n<li>Test ID is working using: <a href="http://www.openidenabled.com/resources/openid-test/checkup/" rel="nofollow noreferrer">http://www.openidenabled.com/resources/openid-test/checkup/</a></li>\n</ul>\n<p>Rerefence info: <a href="http://www.wynia.org/wordpress/2007/01/15/setting-up-an-openid-with-php/" rel="nofollow noreferrer">http://www.wynia.org/wordpress/2007/01/15/setting-up-an-openid-with-php/</a> , <a href="http://siege.org/projects/phpMyID/" rel="nofollow noreferrer">http://siege.org/projects/phpMyID/</a> , <a href="https://blog.stackoverflow.com/2009/01/using-your-own-url-as-your-openid/">https://blog.stackoverflow.com/2009/01/using-your-own-url-as-your-openid/</a></p>\n'}, {'answer_id': 3867244, 'author': 'colan', 'author_id': 442022, 'author_profile': 'https://Stackoverflow.com/users/442022', 'pm_score': 2, 'selected': False, 'text': '<p>Take a look over at the <a href="http://wiki.openid.net/Run-your-own-identity-server" rel="nofollow">Run your own identity server</a> page.  Community-ID looks to be the most promising so far.</p>\n'}, {'answer_id': 72232344, 'author': 'DAB', 'author_id': 2004265, 'author_profile': 'https://Stackoverflow.com/users/2004265', 'pm_score': 0, 'selected': False, 'text': '<p>The above answers all seem to contains dead links.</p>\n<p>This seems be a possible solution which is still working:\n<a href="https://simpleid.org/" rel="nofollow noreferrer">https://simpleid.org/</a></p>\n'}]
['https://Stackoverflow.com/questions/28588', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3102/']