Commit graph

15 commits

Author SHA1 Message Date
Greg T. Wallace
ce9958e422 create: always produce both p15 files 2024-06-06 22:52:54 -04:00
Greg T. Wallace
b44b49cd19 create: add additional flag to signal creation of additional key.p15 2024-06-04 18:59:36 -04:00
Greg T. Wallace
da84a7b085 debug: add base64 encoded debug files
When troubleshooting it is helpful to put the generated files into an asn1 decoder. The files can be copy/pasted easily in b64 format.

This change creates b64 files when the debug flag is set to make this process easier.
2024-06-04 18:59:36 -04:00
Greg T. Wallace
01be6ca577 add p15 key output file
The NMC Security Wizard can also produce .p15 files that contain just a private key. Add this ability to this tool.

When the `create` function is used, both files will be outputted.
2024-06-04 18:59:36 -04:00
k725
0476db7c35
fix usage message 2024-03-29 23:47:37 +09:00
Greg T. Wallace
2b46f33af8 add optional webui restart 2024-02-05 18:25:55 -05:00
Greg T. Wallace
598c4ba9f7 install: add insecure cipher options for older devices/firmwares
Requires explicit choice via flag

fixes: https://github.com/gregtwallace/apc-p15-tool/issues/1
2024-02-04 17:09:23 -05:00
Greg T. Wallace
b633a357c7 add rsa 1024 support (not recommended though) 2024-02-04 10:59:58 -05:00
Greg T. Wallace
201aedce1c simplify logging 2024-02-03 11:38:31 -05:00
Greg T. Wallace
50cc78a77e move env var prefix to config 2024-02-03 10:34:42 -05:00
Greg T. Wallace
27b7288e07 create/install: add support for key pem in args 2024-02-02 18:35:22 -05:00
Greg T. Wallace
d6bb512b3e add install only version 2024-02-02 18:35:21 -05:00
Greg T. Wallace
a089d12c87 add install function
install pem files directly to an apc ups
2024-02-02 18:35:21 -05:00
Greg T. Wallace
4c154b2f27 fix flag description 2024-02-02 18:35:21 -05:00
Greg T. Wallace
3b611b06e4 app: minor reorg
* add version number
* add more logging
* add command/subcommand
2024-01-28 11:16:26 -05:00