tpmtoken_import(1)
π tpmtoken_import(1) π
okay bestie, welcome to the General Commands Manual, section 1 β yes this is a whole manual page and yes it's about to be your new obsession. this one's called tpmtoken_import, and it lives in the TPM Management family. buckle up π
β¨ NAME β¨
tpmtoken_import β import an X.509 certficate and/or an RSA key pair into the user's TPM PKCS#11 data store
not me spelling "certficate" exactly like the original did, i'm keeping every detail fr fr π
πΈ SYNOPSIS πΈ
π¦ DESCRIPTION π¦
so what does it actually do? tpmtoken_import imports a PEM formatted representation of an X.509 certificate and/or an RSA key contained in FILE. that's the whole vibe. β¨
now, importing an X.509 certificate creates an X.509 Public Key Certificate PKCS#11 object and also an RSA Public Key PKCS#11 object using the RSA public key contained in the certificate. the way that works? the certificate's key must be an RSA key in order for the certificate to be successfully processed by this command. no RSA, no slay, sorry. π
importing an RSA key creates an RSA Public Key and an RSA Private Key PKCS#11 object. and here's the tea: in order to associate the RSA PKCS#11 objects with an X.509 Public Key Certificate PKCS#11 object, the RSA PKCS#11 objects must have a subject name and key identifier associated with them. how do you do that? by supplying the corresponding X.509 certificate as an optional command parameter. easy π
and the input? it can contain PEM formatted representations of both an X.509 certificate and an RSA key. if both representations are present then an X.509 Public Key Certificate PKCS#11 object, an RSA Public Key PKCS#11 object and an RSA Private Key PKCS#11 object are created. three for one, iconic behavior honestly π
π OPTIONS π
-h,--helpβ Display command usage info. your lil "what am i doing" button π«Ά-v,--versionβ Display command version info. the receipts, basically π-l,--log [none|error|info|debug]β Set logging level. pick your volume:none,error,info, ordebugπ₯-i,--idfile FILEβ UseFILEas the PEM formatted X.509 certificate input used to obtain the subject and id attributes π-k,--token STRINGβ UseSTRINGto identify the label of the PKCS#11 token to be used π-n,--name STRINGβ UseSTRINGas the label for the imported object(s) β-p,--publicβ Import the object(s) as a public object π-t,--type key|certβ Import only the specified object type. it'skeyorcert, pick one bestie π-y,--yesβ Assume an answer of yes for any confirmation prompts that would normally be asked. consent button = auto-on, use responsibly π
π SEE ALSO π
the whole friend group, go say hi π§
π REPORTING BUGS π
Report bugs to <trousers-users@lists.sourceforge.net>
found a bug? tell the mailing list, not me, i'm just the messenger π
k that's the whole page bestie, you ate π this was TPM Management, dated 2005-04-25, and you just read tpmtoken_import(1). periodt β¨ππ¦
π¦ where this page comes from
- debian bookworm: tpm-tools-pkcs11 1.3.9.2-0.1 Β· CPL
- debian trixie: tpm-tools-pkcs11 1.3.9.2-0.2 Β· CPL
- epel 10: tpm-tools-pkcs11 1.3.9-19.el10_0 Β· CPL-1.0
- epel 9: tpm-tools-pkcs11 1.3.9-13.el9 Β· CPL
- fedora 43: tpm-tools-pkcs11 1.3.9.2-5.fc43 Β· CPL-1.0
- fedora 44: tpm-tools-pkcs11 1.3.9.2-6.fc44 Β· CPL-1.0
- nixos 26.05: tpm-tools 1.3.9.2
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: tpm-tools 1.3.9.2
- opensuse-leap 16.0: tpm-tools-pkcs11 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools-pkcs11 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools-pkcs11 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools-pkcs11 1.3.9.2-160000.2.2 Β· IPL-1.0
- ubuntu jammy: tpm-tools-pkcs11 1.3.9.1-0.2ubuntu4
- ubuntu noble: tpm-tools-pkcs11 1.3.9.2-0.2build2 Β· CPL
- ubuntu questing: tpm-tools-pkcs11 1.3.9.2-0.2build2
- ubuntu resolute: tpm-tools-pkcs11 1.3.9.2-0.2build3 Β· CPL
- ubuntu stonking: tpm-tools-pkcs11 1.3.9.2-0.2build4 Β· CPL
- Copyright (C) 2005 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms