[foaf-protocols] generating certificates and trying out foaf+ssl
henry.story at bblfish.net
Thu Oct 9 22:41:16 CEST 2008
I have placed a little program to generate and produce the foaf that
needs to be added to one's foaf file in sommer.dev.java.net . It is in
the misc/FoafServer directory
Run it like this:
$ ant jar #make sure your JAVA_HOME is set to java 6
$ java -cp dist/FoafServer.jar
net.java.dev.sommer.foafserver.utils.GenerateKey -uri http://bblfish.net/people/henry/card#me
publish this triples that go with this N3 (use cwm to merge it into an
# the ontology is very speculative here.
# we only need a way of linking a person to his x509 certificate, of
which all that is required is the signature
@prefix wot: <http://xmlns.com/wot/0.1/> .
is wot:identity of [
the public and private keys are in the stored in cert.pkcs
you can list the contents by running the command
$ openssl pkcs12 -clcerts -nokeys -in cert.pkcs | openssl x509 -noout -
The foaf there can be added to your foaf file, and then you can query
Juliette's protected foaf
$ java -cp dist/FoafServer.jar -Djavax.net.ssl.keyStore=cert.pkcs -
You will get N3 back, only if your foaf file returns the correct
Ok. So clearly the rdf in the foaf file is not yet properly defined.
Should one put the signature value, or something else? This should be
defined. Perhaps worth playing with first to get an idea of what is
happening. Then we could work out which ontology to use, or which
relations need to be created.
Home page: http://bblfish.net/
More information about the foaf-protocols