This library implements the WebID+TLS authentication protocol using the raptor bindings for Erlang.
This software is at a very early alpha stage. The raptor bindings used are unfinished and might crash the ErlangVM.
- get dependencies
./rebar get-deps
- compile
./rebar compile
At the moment the example needs to be compiled manually and the certificates need to be in the correct place.
cd ebin
erlc ../examples/src/webid_example.erl
cp -r ../examples/certs .
start and stop application as usual
application:start(webid).
application:stop(webid).
verify WebID aware certificates
{ok, Cert} = ssl:peercert(AcceptedSock),
DecodedCert = public_key:pkix_decode_cert(Cert, plain),
webid:verify(DecodedCert) -> {ok, WebID}
-> {error, eauthfailed}
This software is licensed under the Apache License Version 2.0.
See http://www.apache.org/licenses/LICENSE-2.0 or the LICENSE file.
Copyright (C) 2013 Jonas Pollok