HAB4_PKI_TREE(1)
π HAB4_PKI_TREE(1) π
okay bestie, so welcome to the HAB4_PKI_TREE(1) page from the i.MX CST Documentation β that's the i.MX Code Signing Tool doc, and this one's all about building a PKI tree so your NXP i.MX processor can do secure boot. grab a strawberry π, we're doing crypto.
β¨ NAME β¨
ahab_pki_tree, hab4_pki_tree β generate a basic PKI tree for secure boot on NXP i.MX processors
fr fr, that's the whole job. two little tools, one big vibe. π
π SYNOPSIS π
AHAB
ahab_pki_tree -existing-ca yn [-ca-key name -ca-cert name] -kt algo
-kl param -duration years -num-srk nr -srk-ca yn [--help]
HABv4
hab4_pki_tree -existing-ca yn [-ca-key name -ca-cert name] -kt algo
-kl param -duration years -num-srk nr -srk-ca yn [--help]
they're siblings, they take the same flags, they just live in slightly different eras. π
π¦ NOTE π¦
so this manpage is literally just a short description of NXP's ahab_pki_tree and hab4_pki_tree. if you want the full deep-dive, you gotta go read the Code Signing Tool User Guide UG10106, section 4.1.1.
heads up: that user guide lives over at www.nxp.com and is excluded from Debian for copyright reasons β so it's not gonna be sitting in your package, bestie. you'll have to go get it yourself. π
πΈ DESCRIPTION πΈ
ahab_pki_tree and hab4_pki_tree generate a basic PKI tree. and what's in that tree, you ask? a Certificate Authority (CA) and one or more Super Root Keys (SRK). iconic. π«Ά
here's where the two variants get their own personality:
- with the ahab variant, each SRK has one subordinate Signing Key (SGK).
- the hab4 variant creates one subordinate Command Sequence File (CSF) key and one image (IMG) key for each SRK.
and ngl, you're not locked in β additional keys can later be added with the add_key tool. slay, expandable. β¨
the following files and directories are expected relative to the current working directory, or they get created if they don't exist yet:
crtsβ the directory where X.509 public key certificates for CA, SRK, SGK, CSF and IMG are searched for and created. all certificates are in PEM and DER format. the naming convention isname.pem, where name refers to the argument you supplied with-ca-cert nameand-ca-key name.keysβ the directory where the private keys corresponding to the certificates incrtsare searched for and created. all keys are in PKCS #8 syntax and are encoded to PEM and DER format.keys/key_pass.txtβ a text file holding a password to protect your private keys. the password is repeated twice, like this:
my_password
my_password
the same password is used for all private keys. and the default password is "test" β yes, really, test. don't leave it like that, I'm begging. π
also, both tools will load general settings from the system wide OpenSSL configuration file. noted. π
π OPTIONS π
every flag, one by one, no skipping, we stay thorough:
-existing-cayn β set it toyto use an existing CA key, ornto generate the CA key and certificate from scratch. if you went withy, then the-ca-keyand-ca-certoptions are mandatory β no dodging them.-ca-keyname β if-existing-cawasy, this specifies the existing CA key.-ca-certname β if-existing-cawasy, this specifies the existing CA certificate.-ktalgo β the public key algorithm to use. pick one ofrsa,rsa-pss,ecc.-klparam β the key length-ish parameter, and what's valid depends on your algo:- for algo
ecc, one ofp256,p384,p521. - for algo
rsaandrsa-pss, one of2048,3072,4096.
- for algo
-durationyears β the validity period of the PKI tree in years.-num-srknr β how many SRKs to generate. must be between 1 and 4. that's the range, no cap beyond that. (well, the cap is 4. that's the cap.) π-srk-cayn β set it to:yto generate SRK certificates with the CA flag set. such SRK certificates can be used to issue other certificates. main character energy. πnto generate user certificates.
--helpβ print help text. the classic. whenever you're lost, just ask. π
π₯ EXAMPLES π₯
wanna generate a HAB4 PKI tree with two SRKs? bet. here's the exact line:
hab4_pki_tree -existing-ca n -kt rsa -kl 4096 -duration 5 -num-srk 2 -srk-ca y
copy it, paste it, go secure some boot. periodt. π
β SEE ALSO β
go peek at these when you're done here, they're the friend group:
add_key(1), cst(1), srktool(1), config(5ssl)
okay that's the whole page bestie, you ate. πβ¨ this was the i.MX CST Documentation version of HAB4_PKI_TREE(1), dated 2026-09-02 β go forth and build your tree, ily, bye! ππ¦πΈ
π¦ 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