Comments (3)
parser.add_argument('--pin', help='PIN number')
is correct. --pin
argument is available not only for initialization, but also for other commands. It is a common parameter for all.
Fixed rtc_get
.
from pico-hsm.
So in https://github.com/polhenarejos/pico-hsm/blob/master/doc/usage.md
$ python3 pico-hsm-tool.py initialize --so-pin 3537363231383830 --pin 648219
should be
$ python3 pico-hsm-tool.py --pin 648219 initialize --so-pin 3537363231383830
at the end of the command line --pin generates an error
HSM module work like a charm with XCA tool on Windows.
Bye
from pico-hsm.
Hi,
Back again with def parse_args(): in the script
In order to get the --pin args to be place after the command, and to use it with several sub command one can write something like this :
subparser = parser.add_subparsers(title="commands", dest="command")
parent = argparse.ArgumentParser(add_help=False)
parent.add_argument('--pin', help='PIN number')
parser_init = subparser.add_parser('initialize', help='Performs the first initialization of the Pico HSM.',parents=[parent])
parser_init.add_argument('--so-pin', help='SO-PIN number')
And you have to add the parameter parents=[parent] in each subcommand where the --pin argument can be use.
Bye.
from pico-hsm.
Related Issues (20)
- Are there plans to add support for ed25519? HOT 5
- Response time issue HOT 2
- Error importing dkek in development branch HOT 3
- Unable to initialize a new Pico-HSM HOT 4
- Usage in Python HOT 5
- AES Encrypt / Decrypt HOT 13
- Usage on MacOS and Windows with Microsoft CCID driver HOT 8
- ERROR - common.h missing HOT 1
- ECDH derived key is missing one byte compared with openssl-pkeyutl HOT 3
- EC Key Creation HOT 4
- urllib.error.HTTPError: HTTP Error 500: Internal Server Error in "pico-hsm-tool.py" initialize command HOT 5
- Strange behaviours betwwen Windows 10 & 11 HOT 4
- How to list pkcs11 url of the private key? HOT 1
- security consideration info HOT 4
- Support for YD-RP2040 by VCC-GND Studio ? HOT 2
- USB IDs HOT 1
- waveshare zero build fails. HOT 11
- pico-hsm-tool urllib.error.HTTPError: HTTP Error 500: Internal Server Error HOT 2
- HTTP server error on initialization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-hsm.