summaryrefslogtreecommitdiff
path: root/p11p-daemon/README.md
blob: 059dc91634c2aa3429c2f16badf58b74b0331324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# p11p is a PKCS #11 proxy

## Compile

If you don't have rebar3 installed, install it. Example:

    FIXME

If you don't have rebar3 in PATH, add it. Example:

    $ export PATH=$PATH:~/.cache/rebar3/bin

Compile:

    $ make

## Configure

For now, see config/sys.config.

## Run

To start an Erlang shell running the p11p application:

    $ make shell

A socket file per configured token /run/user/$EUID/p11p/$TOKEN-$PID
can now be used by a client. Example during debug phase:

    $ echo foo | socat - UNIX-CONNECT:/run/user/1000/p11p/vtoken1-23484
	ok, thanks: foo

## Known bugs and limitations

- Multiple p11 applications using the same vtoken in a given
  p11p-daemon will result in undefined behaviour. We should either
  make this work, or prohibit it by rejecting a second user of the
  same vtoken.