Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCTI configuration via openssl.cnf #107

Open
mccarey opened this issue Mar 15, 2024 · 0 comments
Open

TCTI configuration via openssl.cnf #107

mccarey opened this issue Mar 15, 2024 · 0 comments

Comments

@mccarey
Copy link

mccarey commented Mar 15, 2024

Hello,

I wanted to use openssl.cnf to configure the tcti parameter. But the parameter was not considered when I tried to use the tpm2 provider. I updated the OSSL_PARAM_utf8_ptr call in tpm2_provider.c and the parameter now is used. I can switch from /dev/tpm0 to /dev/tpmrm0 and vice versa just by changing the value in the openssl.cnf configuration file.

Here is the change in tpm2_provider.c:

  • OSSL_PARAM_utf8_ptr(TPM2_PROV_PARAM_TCTI, &tcti_nameconf, 0)
  • Instead of OSSL_PARAM_utf8_ptr(TPM2_PROV_PARAM_TCTI, tcti_nameconf, 0)

Please can you check if this is the right way.
Also, it seems that, by default, /dev/tpmrm0 is now used.
Can you confirm ? if yes, maybe the doc needs to be updated as well.

(I used the master branch)
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant