diff options
Diffstat (limited to 'doc/srptool-examples.texi')
-rw-r--r-- | doc/srptool-examples.texi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/srptool-examples.texi b/doc/srptool-examples.texi new file mode 100644 index 0000000..1be2315 --- /dev/null +++ b/doc/srptool-examples.texi @@ -0,0 +1,19 @@ +To create @file{tpasswd.conf} which holds the g and n values for SRP protocol +(generator and a large prime), run: +@example +$ srptool --create-conf /etc/tpasswd.conf +@end example + +This command will create @file{/etc/tpasswd} and will add user 'test' (you +will also be prompted for a password). Verifiers are stored by default +in the way libsrp expects. +@example +$ srptool --passwd /etc/tpasswd --passwd-conf /etc/tpasswd.conf -u test +@end example + + +This command will check against a password. If the password matches +the one in @file{/etc/tpasswd} you will get an ok. +@example +$ srptool --passwd /etc/tpasswd --passwd\-conf /etc/tpasswd.conf --verify -u test +@end example |