-
Notifications
You must be signed in to change notification settings - Fork 89
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
feat: add TPM2 support for EvseV2G TLS server private key #1021
base: main
Are you sure you want to change the base?
Conversation
d23e00d
to
e926621
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Do we have some documentation or example where -DUSING_TPM2
is already used? If not, then we should make a note of how to activate TPM support.
|
c307ee4
to
d3be06f
Compare
// ref1.certificate_chain_file = "alt_server_chain.pem"; | ||
// ref1.private_key_file = "alt_server_priv.pem"; | ||
// ref1.trust_anchor_file = "alt_server_root_cert.pem"; | ||
// ref1.ocsp_response_files = {"ocsp_response.der", "ocsp_response.der"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intended to submit all these commented out stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not self-explaining, could you please add a comment about the intention of this?
Personally i don't think such dead code, because there is no CI coverage in case of refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is test code, not part of the deployed code.
Those lines will be uncommented when the tests that use them are added.
It saves having to remember what the changes are.
d3be06f
to
85802c0
Compare
Note arbitrary sign/verify is not currently supported in the OpenSSL utility layer (openssl_util.cpp) TPM2 support requires -DUSING_TPM2 to cmake Signed-off-by: James Chapman <james.chapman@pionix.de>
Signed-off-by: James Chapman <james.chapman@pionix.de>
85802c0
to
c3b451b
Compare
Describe your changes
feat: add TPM2 support for EvseV2G TLS server private key
Note arbitrary sign/verify is not currently supported in the OpenSSL utility layer (openssl_util.cpp)
TPM2 support requires -DUSING_TPM2 to cmake
Issue ticket number and link
Checklist before requesting a review