Affects Ubuntu 26.04 (resolute): libtpm2-pkcs11 1.9.1-0.1ubuntu1 with OpenSSL 3.5.5 and libengine-pkcs11-openssl 0.4.18-1. wpa_supplicant EAP-TLS with a TPM2-backed PKCS#11 key fails with EVP_PKEY_fromdata_init: operation not supported for this keytype , then PKCS#11 module: Host memory error (p11_rsa.c) . The same failure reproduces with openssl req -new -engine pkcs11 -keyform engine -key pkcs11:... . The 1.9.1-0.1ubuntu4 build can't be installed on 26.04 because it links libcrypto.so.4. Verification: I rebuilt 1.9.1 against OpenSSL 3.5.5 with set-version-of-library and the two lp2167891 patches (without fix-for-openssl4-compat ). • openssl req signing through the engine now succeeds, where the stock build fails with "Host memory error". • With the patched module loaded by wpa_supplicant ( PKCS11_MODULE_PATH ), EAP-TLS connects. The first attempt after a restart works, and key negotiation completes. Remaining issue: after the engine has loaded a TPM key once, libtss2-esys cannot create RSA keys in the same process. A standalone test shows EVP_PKEY_fromdata_init returning -2 on a fresh OSSL_LIB_CTX after ENGINE_load_private_key . Later re-auth attempts can fail with esys_crypto_ossl.c:728 Could not create rsa key (0x00070001) , so wpa_supplicant must be restarted to reconnect. Please backport the lp2167891 patches to resolute. I'm happy to test a proposed build.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2167891 Title: "Host memory error" when using tpm with wpa_supplicant To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tpm2-pkcs11/+bug/2167891/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
