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

[WIP] [knx] Add support for using hardware TPM modules #15326

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

holgerfriedrich
Copy link
Member

This as an attempt to store passwords for KNX secure protected by a TPM module.
The password is stored encrypted and can only be decrypted with this specific TPM.
The proof of concept was done on a Rapsberry PI with a LetsTrust TPM module on top.

  • Add TpmInterface, a class built on top of Tss.Java. This lib is to be included in a special way due to inconsistencies in package creation which makes it incompatible to OSGI.
  • Add console commands knx tpm-info and knx tpm-encrypt <password>. Output to be used instead of the password. Use space in front on the knx to avoid you password to be stored to console history.

Disclaimer: Use at you own risk.

Disclaimer: Storing encrypted passwords does not bring perfect security for the password - anyone who can access your machine can use the TPM as well to decode, RPI is not a secure system, Java is not secure at all. But it is nice that you do not need to worry about disclosing you password in backups or screenshots :-)

@holgerfriedrich holgerfriedrich added the work in progress A PR that is not yet ready to be merged label Jul 29, 2023
@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Jul 30, 2023
@holgerfriedrich holgerfriedrich force-pushed the pr-knx-tpm branch 3 times, most recently from d5b0877 to 1d8fa50 Compare July 31, 2023 22:07
@holgerfriedrich holgerfriedrich force-pushed the pr-knx-tpm branch 2 times, most recently from f25ee6f to 6a50352 Compare April 1, 2024 19:12
@holgerfriedrich holgerfriedrich force-pushed the pr-knx-tpm branch 2 times, most recently from 450711e to f761f32 Compare May 24, 2024 21:04
Add TpmInterface, a class built on top of Tss.Java.
This lib is to be included in a special way due to inconsistencies
in package creation which makes it incompatible to OSGI.

Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on work in progress A PR that is not yet ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants