https://github.com/theopolis/fit-certificate-store
A Firmware Image Tree (FIT) certificate store generator for u-boot
https://github.com/theopolis/fit-certificate-store
Last synced: 12 months ago
JSON representation
A Firmware Image Tree (FIT) certificate store generator for u-boot
- Host: GitHub
- URL: https://github.com/theopolis/fit-certificate-store
- Owner: theopolis
- License: other
- Created: 2016-04-30T00:06:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T01:51:24.000Z (over 9 years ago)
- Last Synced: 2025-02-09T00:29:45.207Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## FIT Certificate Store
This is a Firmware Image Tree (FIT) certificate store generator.
### Dependencies
- `dtc` - the device tree compiler
- A public RSA key
Python will need `jinja2`, `argparse` and `Crypto`.
### Usage
```bash
python ./fit-cs.py --help
usage: fit-cs.py [-h] [--ext pub] [--template PATH] [--no-out]
[--algorithm sha256] [--required-node conf]
DIRECTORY [OUTPUT_DTB]
Generate a FIT certificate store (a DTB).
positional arguments:
DIRECTORY Path to directory containing public keys
OUTPUT_DTB Output path of compiled certificate store (dtb)
optional arguments:
-h, --help show this help message and exit
--ext pub Search for public keys with this file extension
--template PATH Certificate store template
--no-out Print the resultant source instead of compiling
--algorithm sha256 Override default hashing algorithm
--required-node conf Set the required node (default=conf)
```
Try the tests:
```
python ./fit-cs.py --no-out ./tests > /tmp/test.dts
diff ./tests/dev.dts /tmp/test.dts
```