SRKTOOL(1)
π SRKTOOL(1) β the i.MX CST Documentation girlies' edition π
okay so bestie, welcome to srktool, section 1 of the manual, straight outta the i.MX CST Documentation β¨ this is the tool that generates SRK Tables and eFuse hashes for secure boot on NXP i.MX processors, and it does both HAB4 and AHAB π
β¨ NAME β¨
srktool β generate SRK Table and eFuse hash for secure boot on NXP i.MX processors (HAB4 and AHAB) π¦
π SYNOPSIS π
srktool --ahab_ver [version] --table file --efuses file --digest algo
--sign_digest algo --certs certs,... [--fuse_format format] [--license]
[--version] [--verbose]
srktool --hab_ver 4 --table file --efuses file --digest sha256 --certs
certs,... [--fuse_format format] [--license] [--version] [--verbose]
likeβ¦ that's the whole vibe in two lines, no cap π
π«Ά NOTE π«Ά
This manpage is a short description of NXP srktool. For a detailed discussion, refer to the Code Signing Tool User Guide UG10106, sections 4 and 5.2. The user guide can be obtained from www.nxp.com and is excluded from Debian for copyright reasons. π
ngl bestie, if you need the full lore, that's where it lives β this page is the TL;DR π
π DESCRIPTION π
srktool is a utility for generating Super Root Key (SRK) tables and eFuse hash binaries required for enabling secure boot on NXP i.MX SoCs using either HAB4 or AHAB mechanisms. it's giving security, it's giving fuse-burning main character energy π
It processes up to four X.509 certificates (PEM or DER encoded), and produces a binary SRK table and a corresponding hash file suitable for programming into fuses. periodt. π₯
π OPTIONS π
-a,--ahab_ver [version]β target platform uses AHAB (Advanced High Assurance Boot), e.g., i.MX 8/8X/8ULP series. πΈ
Takes an optional version argument which can be one of:
1: legacy (default)2: hybrid
-h,--hab_ver versionβ target platform uses HAB (High Assurance Boot), e.g. i.MX 6. The version must be set to4. that's the only value, no negotiating bestie π-t,--table fileβ output file path for the generated SRK table. π-e,--efuses fileβ output file path for the generated eFuse binary containing the SRK table hash. β-d,--digest digestalgβ digest algorithm used to compute the SRK table hash. This is required for both AHAB and HAB4. cannot skip it, fr fr π
For AHAB 1 (legacy), one of:
sha512: supported in i.MX 8/8X and is the default.sha256: supported in i.MX 8ULP.
For AHAB 2 (hybrid), only sha512 is supported.
For HAB4, only sha256 is supported.
-s,--sign_digest digestalgβ signature digest algorithm used to sign the SRK certificates. One of:sha256,sha384,sha512β¨
This option is only valid for AHAB. (HAB4 girlies, sit this one out π«Ά)
-c,--certs cert1[,cert2,...,cert4]β comma-separated list of up to 4 X.509 certificate files (PEM or DER). π¦- PEM or DER format supported
- No whitespace allowed between filenames
- For HAB4: prefix a cert with
"%"to include only its public key hash instead of the full key
-f,--fuse_format formatβ optional fuse data output format: π0: 8 fuses per word (e.g.,"00 00 00 0a 00 00 00 01 ...")1: 32 fuses per word (default; e.g.,"0a 01 ff 8e")
-l,--licenseβ print license information and exit. π-v,--versionβ print the tool version and exit. π-b,--verboseβ enable verbose output. π£οΈ
π§ EXAMPLES π§
π AHAB Example
Generate an AHAB-compatible SRK table and eFuse file with SHA-512 digest and certificate signatures using SHA-384:
srktool --ahab_ver \
--digest sha512 --sign_digest sha384 \
--table srk_table.bin --efuses srk_fuse.bin \
--certs srk1.pem,srk2.pem,srk3.pem
π HAB4 Example
Generate a HAB4-compatible SRK table using SHA-256 and a mix of full and digest-style certificates:
srktool --hab_ver 4 --digest sha256 \
--table srk_table.bin --efuses srk_fuse.bin \
--certs srk1.pem,srk2.pem,%srk3.pem
like notice the %srk3.pem in the HAB4 one? that's the public-key-hash-only flex π
iykyk
π SEE ALSO π
cst(1), ahab_pki_tree, hab4_pki_tree
those are your other girls, go say hi π
aaand that's the whole page bestie!! this one's from the i.MX CST Documentation, dated 2026-09-02, and it's literally SRKTOOL(1) π slay, go generate some SRK tables, and don't forget to actually read UG10106 if you want the deep lore πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: imx-code-signing-tool 4.0.1+dfsg-2ubuntu2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms