[foaf-protocols] spkac test implementation in Java

Story Henry henry.story at bblfish.net
Mon Jan 5 18:18:16 CET 2009

Ok I have no fixed the problem.

I wrote this up yesterday late at night and mistakenly set the wrong  
mime type.
The mime type was for certification authority certs and not for client  
I now set it to "application/x-x509-user-cert"

Safari does not seem to like the multipart download certs, so I now  
send it the cert directly if the UserAgent contains AppKit. On  
download the KeyChain is opened, though the UI is not very good, as  
the user may not easily find his cert there. The User should be guided  
Sadly this means that the user also remains on the same web page.

I tested this on Opera and it also works, though opera too does not  
seem to use the multipart trick to display a new page.

All the code is now in the sommer repository. If you'd like to help  
hack it just get an account on dev.java.net and ask for the developer  
role. I give that away freely.


On 5 Jan 2009, at 15:09, Story Henry wrote:

> I installed the latest sesame and did some general clean up of the
> repository, though I don't think that should have any effect on this.
> After filling out the form and pressing "request" the data is posted  
> to
> https://localhost:8843/servlet/CreateCertSPKAC
> The server then returns the key. If it just returned the key, then the
> user would end up on a blank page so I have now changed the code so
> that it returns a multipart/mixed page containing two things:
>   - the certificate
>   - some html which gets displayed in Firefox
>     (Safari just download the full multipart file for the moment, and
> no longer
>       displays the spkac calculation window which it once did)
> I checked out a full copy and it works for me on Firefox.
> So I'd be interested to hear if others have the same problem.
> 	Henry
> On 5 Jan 2009, at 13:11, Story Henry wrote:
>> On 5 Jan 2009, at 12:31, Toby A Inkster wrote:
>>> On 5 Jan 2009, at 11:23, Story Henry wrote:
>>>> What browser are you using Toby, and on which OS?
>>> Firefox 3.0.5 on Mac OS 10.4.11.
>> Ok, full disclosure here then. I am on Firefox 3.1beta 2 on Max OS
>> 10.5.6 .
>> Update from the root of the repository. It could also be that I am
>> missing something.
>> Mhh. I just checked out the repostiroy, and got the same  message  
>> when
>> running it:
>> "This is not a certificate authority certificate, so it can't be
>> imported into the certificate authority list."
>> So that's odd. It does not always do that though. So the second  
>> time I
>> tried it did not.
>> Mhh...
>> Henry
>>> That said, when I go to other pages on localhost:8843, I'm getting
>>> HTTP 500 errors, so perhaps I've just got a dodgy build and should
>>> delete my copy of the sommer repository and re-checkout it.
>>> -- 
>>> Toby A Inkster
>>> <mailto:mail at tobyinkster.co.uk>
>>> <http://tobyinkster.co.uk>
>> _______________________________________________
>> foaf-protocols mailing list
>> foaf-protocols at lists.foaf-project.org
>> http://lists.foaf-project.org/mailman/listinfo/foaf-protocols
> _______________________________________________
> foaf-protocols mailing list
> foaf-protocols at lists.foaf-project.org
> http://lists.foaf-project.org/mailman/listinfo/foaf-protocols

More information about the foaf-protocols mailing list