From 6fdcb01012f13770fe5c574608532513b2fadeac Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 26 Jan 2024 16:45:46 +0100 Subject: Rename project --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c54d551..ee94cc9 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,34 @@ -# margfools +# marginaltool Python script to replace [MargTools](https://businessconnect.margis.si/output/#orodja). Can be used to sign documents with [GovernmentConnect](https://margis.si/produkti/government-connect/). ## Usage -Run `margfools -h` for a synopsis of command‐line arguments. Allowed arguments are +Run `marginaltool -h` for a synopsis of command‐line arguments. Allowed arguments are - margfools [-h] [-e {file,pkcs11}] [-k KEYFILE] [-c CERTFILE] [-i ] URL + marginaltool [-h] [-e {file,pkcs11}] [-k KEYFILE] [-c CERTFILE] [-i ] URL To use a signing key and certificate stored in PEM files, install `openssl` and run - margfools -e file -k KEYFILE -c CERTFILE bc-digsign://sign?… + marginaltool -e file -k KEYFILE -c CERTFILE bc-digsign://sign?… To sign using a PIV-II smartcard such as the Yubikey, install `pkcs11-tool` from [OpenSC](https://github.com/OpenSC/OpenSC) and run - margfools -e pkcs11 -i bc-digsign://sign?… + marginaltool -e pkcs11 -i bc-digsign://sign?… The script will prompt for the PIN to unlock the smartcard. To find the key ID, run pkcs11-tool -O -To use `margfools` from the web app, set it as the default program for `x-scheme-handler/bc-digsign` URLs, or copy the `margfools.desktop` file to `~/.local/share/applications/` and run +To use `marginaltool` from the web app, set it as the default program for `x-scheme-handler/bc-digsign` URLs, or copy the `marginaltool.desktop` file to `~/.local/share/applications/` and run - xdg-mime default margfools.desktop x-scheme-handler/bc-digsign + xdg-mime default marginaltool.desktop x-scheme-handler/bc-digsign For this to work, the script must be configured as described below. ## Configuration -Settings can be saved on a per‐site basis in `~/.margfools` using the [configparser](https://docs.python.org/3/library/configparser.html) format. +Settings can be saved on a per‐site basis in `~/.marginaltool` using the [configparser](https://docs.python.org/3/library/configparser.html) format. [DEFAULT] engine = pkcs11 -- cgit v1.3