-
Notifications
You must be signed in to change notification settings - Fork 384
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
TPM backed mTLS in Python #3461
Comments
|
thanks @JuergenReppSIT! using the parent handle (0x81100001) for load and encodeobject commands fixed the with my installed version of the tpm tools (5.6)
using the current master of the tpm tools, I loaded the handle again and created the
The
|
Hi @howaryoo , you can try adding -p to this command, and the passphrase should not appear. |
Thanks @wudiqiang2024, Below a recap of the commands I used to have a working client and server using mTLS. TPM commands
Server certificate (TPM backed)Please note that I used open ssl version 3.4 installed with conda for everything below
Client certificate (non TPM backed)
Servercode as above with the pem file name changed
Client
|
I wish to have a Python asyncio streaming server and client communicate in mTLS.
In issue #3397 @wudiqiang2024 has confirmed that this it is possible since
paho-mqtt
also uses Python'sssl
standard library under the hood.My issue is that I get an
ErrorCode (0x0000018a)
In my python code as below, when using the TPM backed certificate, I get an
ErrorCode (0x0000018a)
context.load_cert_chain(certfile="server.crt", keyfile="tpmkey.pem")
Full error and all details below.
Any information on what I did wrong would be greatly appreciated.
OS: ubuntu 24.04 LTS
openssl version
: OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)tpm2-tools version
: 5.6tpm2-openssl version
: 1.2.0installed with the package manager of the distribution.
Commands used to create the keys/pem:
openssl configuration
Commands used to create the server certificate:
Please note that I had to use open ssl version 3.4 installed with
conda
for these commands to work.Otherwise with my system install of openssl I would get this error:
4027CB3B267B0000:error:0300009E:digital envelope routines:do_sigver_init:no default digest:../crypto/evp/m_sigver.c:318:
Python server code
Error:
The text was updated successfully, but these errors were encountered: