summaryrefslogtreecommitdiff
path: root/p11p-daemon/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'p11p-daemon/README.md')
-rw-r--r--p11p-daemon/README.md31
1 files changed, 24 insertions, 7 deletions
diff --git a/p11p-daemon/README.md b/p11p-daemon/README.md
index 059dc91..0dc38aa 100644
--- a/p11p-daemon/README.md
+++ b/p11p-daemon/README.md
@@ -2,9 +2,8 @@
## Compile
-If you don't have rebar3 installed, install it. Example:
-
- FIXME
+If you don't have rebar3 installed, install it. See
+https://www.rebar3.org/docs/ .
If you don't have rebar3 in PATH, add it. Example:
@@ -24,11 +23,29 @@ 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:
+Quite by typing in "q()." in the shell.
+
+To start a "release", running in the background logging to files under
+_build/default/rel/p11p/log:
+
+ $ make start
+
+To stop it again:
+
+ $ make stop
+
+A socket per configured token, /run/user/$EUID/p11p/$TOKEN-$PID, can
+now be used by a client. Example:
- $ echo foo | socat - UNIX-CONNECT:/run/user/1000/p11p/vtoken1-23484
- ok, thanks: foo
+ $ P11_KIT_SERVER_ADDRESS=unix:path=/run/user/1000/p11p/vtoken0-26585 P11_KIT_DEBUG=none p11tool --provider /usr/lib/pkcs11/p11-kit-client.so --list-tokens
+ Token 0:
+ URL: pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=b4a861d362dbd386;token=mytoken
+ Label: mytoken
+ Type: Generic token
+ Manufacturer: SoftHSM project
+ Model: SoftHSM v2
+ Serial: b4a861d362dbd386
+ Module: (null)
## Known bugs and limitations