% tss2_setcertificate(1) tpm2-tools | General Commands Manual % % APRIL 2019
tss2_setcertificate(1) -
tss2_setcertificate [OPTIONS]
tss2_setcertificate(1) - This command associates an x509 certificate in PEM encoding into the path of a key.
These are the available options:
-
-p, --path=STRING:
Identifies the entity to be associated with the certificate.
-
-i, --x509certData=FILENAME or - (for stdin):
The PEM encoded certificate. Optional parameter. If omitted, then the stored x509 certificate is removed.
tss2_setcertificate --path=HS/SRK/myRSACrypt --x509certData=x509certData.file
0 on success or 1 on failure.