[foaf-protocols] FOAF+SSL: Simple Login Page

Melvin Carvalho melvincarvalho at gmail.com
Tue Dec 16 14:19:05 CET 2008


Hi All

The following is a simple login page with, some diagnostics in PHP, for
FOAF+SLL based authentication

https://foaf.me/simpleLogin.php

The functions of the page are:

1. To detect a client certificate
2. To parse the ASN.1 pubic key (in HEX) from the certificate
3. To determine the WebID from SubjectAltName in the certificate
4. To GET the remote RDF from the WebID and parse the rsa:RSAPublicKey
triple from it

If the remote RSA key, and the certificate RSA key match, you will get a
success message for the supplied WebID, thereby providing simple
authentication.  Diagnostics are displayed for each of the steps above.

A more detailed explanation of the login process, together with some code
fragments are documented here:
https://foaf.me/testLogin.php

-Melvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.foaf-project.org/pipermail/foaf-protocols/attachments/20081216/e7c21055/attachment.htm 


More information about the foaf-protocols mailing list