summaryrefslogtreecommitdiff
path: root/p11p-daemon/README.md
blob: ab199d968a932b9d99bd6137c053c5aed60c9b44 (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
# 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

## 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