Fapi_GetCertificate(3)
π Fapi_GetCertificate(3) π
okay so bestie, welcome to the tpm2-tss Library Functions Manual β¨ this is the page for Fapi_GetCertificate and honestly it's giving "small function, big energy" π
β¨ NAME β¨
Fapi_GetCertificate β literally just Fapi_GetCertificate, that's the whole name, no notes π
πΈ SYNOPSIS πΈ
Functions
TSS2_RC Fapi_GetCertificate (FAPI_CONTEXT *context, char const *path,
char **x509certData)
TSS2_RC Fapi_GetCertificate_Async (FAPI_CONTEXT *context, char const
*path)
TSS2_RC Fapi_GetCertificate_Finish (FAPI_CONTEXT *context, char
**x509certData)
π¦ Detailed Description π¦
So basically these are the FAPI functions that let you invoke GetCertificate β either as a one-call situation (do the whole thing in one go, iconic) or in an asynchronous manner (start it, come back later, main character scheduling energy) π«Ά
π Function Documentation π
β TSS2_RC Fapi_GetCertificate (FAPI_CONTEXT * context, char const * path, char ** x509certData)
One-Call function for Fapi_GetCertificate β no cap, it does the whole thing in one shot π
Gets an x.509 certificate for the key at a given path.
π Parameters
contextβ TheFAPI_CONTEXTpathβ The path to the key whose certificate is createdx509certDataβ The PEM-encoded certificate
π Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontext,pathorx509CertDataisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_PATH_NOT_FOUNDifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_KEYif the key is unsuitable for the requested operation.TSS2_FAPI_RC_NO_CERTIFICATEif there is not a x.509 cert associated with the path of the key.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_KEY_NOT_FOUNDif a key was not found.TSS2_FAPI_RC_BAD_VALUEif an invalid value was passed into the function.TSS2_FAPI_RC_TRY_AGAINif an I/O operation is not finished yet and this function needs to be called again.TSS2_FAPI_RC_GENERAL_FAILUREif an internal error occurred.TSS2_FAPI_RC_NOT_PROVISIONEDFAPI was not provisioned.TSS2_FAPI_RC_BAD_PATHif the path is used in inappropriate context or contains illegal characters.
π TSS2_RC Fapi_GetCertificate_Async (FAPI_CONTEXT * context, char const * path)
Asynchronous function for Fapi_GetCertificate β the "I'll get back to you" vibe π§
Gets an x.509 certificate for the key at a given path.
Call Fapi_GetCertificate_Finish to finish the execution of this command. don't ghost it, bestie π
π Parameters
contextβ TheFAPI_CONTEXTpathβ The path to the key whose certificate is created
π Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontextorpathisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_PATH_NOT_FOUNDifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_KEYif the key is unsuitable for the requested operation.TSS2_FAPI_RC_NO_CERTIFICATEif there is not a x.509 cert associated with the path of the key.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_KEY_NOT_FOUNDif a key was not found.TSS2_FAPI_RC_BAD_VALUEif an invalid value was passed into the function.TSS2_FAPI_RC_NOT_PROVISIONEDFAPI was not provisioned.TSS2_FAPI_RC_BAD_PATHif the path is used in inappropriate context or contains illegal characters.
π TSS2_RC Fapi_GetCertificate_Finish (FAPI_CONTEXT * context, char ** x509certData)
Asynchronous finish function for Fapi_GetCertificate β the grand finale, the closing act π
This function should be called after a previous Fapi_GetCertificate_Async.
π Parameters
contextβ TheFAPI_CONTEXTx509certDataβ The PEM-encoded certificate
π Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontextorx509certDataisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINif the asynchronous operation is not yet complete. Call this function again later.TSS2_FAPI_RC_GENERAL_FAILUREif an internal error occurred.TSS2_FAPI_RC_BAD_VALUEif an invalid value was passed into the function.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. (not a human, just a very diligent robot, we stan π€π)
okay that's the whole page bestie, you ate that π«Άβ¨ and for the cute sign-off: this little masterpiece comes from tpm2-tss, Version 4.1.5, and it's filed under Fapi_GetCertificate(3) β date and all, periodt π
πΈ
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms