WiP -- govc: Cmd to enc data for VMs w TPM2 devs #3222
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This patch introduces support for encrypting plain-text information for VMs with TPM2 devices without the system on which the command is run needing a TPM.
Please refer to google/go-tpm#343 for more information.
Closes:
NA
Type of change
Please mark options that are relevant:
How Has This Been Tested?
Ran the command locally and tested it in conjunction with google/go-tpm#343, ex.
From my local desktop, a macOS system with no TPM:
From within the VM (using the program
tpm2-ekunseal.sh
):There are also commands for listing and getting a VM's endorsement key certificates:
List the VM's EK certs:
Or only list the certs of a particular type:
Once the fingerprint is known, it's also possible to get the certificate itself!
Which is handy when wanting to pipe the output to
openssl
:Checklist:
CONTRIBUTION
guidelines of this project