gRPC python server and tpm2 engine

103 views
Skip to first unread message

Subramanian Swaminathan

unread,
Nov 12, 2024, 3:50:44 PM11/12/24
to grpc.io
When setting a secure gRPC server using python is it possible to use a ssl engine to provide the private key, for eg useing tpm2-engine

Subramanian Swaminathan

unread,
Nov 13, 2024, 1:54:07 PM11/13/24
to grpc.io

Recently this commit was done to the cpp grpc implementation to support OpenSSL engines

     https://github.com/grpc/grpc/pull/20316/files

Is this change visible in the python's grpc implementation as well? if so what version of gRPC has this support?

Regards,
-Sub

Subramanian Swaminathan

unread,
Jan 24, 2025, 7:35:17 PMJan 24
to grpc.io
Still awaiting a response, if this is possible?

Sreenithi Sridharan

unread,
Jan 28, 2025, 12:24:16 AMJan 28
to grpc.io
Hi,

Apologies for the late response. Looks like we had missed this conversation thread somehow. 
I found this comment from an old Github issue that discusses how to use OpenSSL engine with gRPC Python but using a source build after setting some env variables.
Using that along with `grpc.ssl_server_credentials` as in the examples here should help your use case.

While this is using source build, I will check and revert if there are any recent versions with pre-built binaries to help with this.
Reply all
Reply to author
Forward
0 new messages