Bugzilla – Bug 1207940
[Build 20230205] openssl-3: tpm unable to enable public key encoding
Last modified: 2024-07-03 13:09:25 UTC
## Observation With the switch to openssl-3, the tpm tests started failing in openQA: # Test died: command 'openssl ec -engine tpm2tss -inform engine -in mykey -pubout -outform pem -out mykey.pub' failed at /usr/lib/os-autoinst/autotest.pm line 387. # Result: Engine "tpm2tss" set. read EC key unable to enable public key encoding 40576458237F0000:error:030000A3:digital envelope routines:EVP_PKEY_set_params:invalid key:crypto/evp/p_lib.c:2353: XHqhV-1- ## openQA references openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-security_tpm2_swtpm@64bit fails in [tpm2_engine_ecdsa_operation](https://openqa.opensuse.org/tests/3101026/modules/tpm2_engine_ecdsa_operation/steps/15) ## Test suite description The base test suite is used for job templates defined in YAML documents. It has no settings of its own. ## Reproducible Fails since (at least) Build [20230205](https://openqa.opensuse.org/tests/3101026) (current job) ## Expected result Last good: [20230201](https://openqa.opensuse.org/tests/3089306) (or more recent) ## Further details Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=security_tpm2_swtpm&version=Tumbleweed)
I have submitted the recently released update to version 1.2.0, just in case this is solved upstream, here: * https://build.opensuse.org/request/show/1063432 I'm adding Otto in CC also.
Assigning back to the OpenSSL maintainer.
(In reply to Pedro Monreal Gonzalez from comment #1) > I have submitted the recently released update to version 1.2.0, just in case > this is solved upstream, here: > * https://build.opensuse.org/request/show/1063432 This has been in TW for a few days now, but the openQA tests still fail the same, so we can conclude it did not help
Simarizing what the test does: tpm2tss-genkey -a ecdsa -s 2048 mykey openssl ec -engine tpm2tss -inform engine -in mykey -pubout -outform pem -out mykey.pub the 2nd command fails with: Engine "tpm2tss" set. read EC key unable to enable public key encoding 4027EA812D7F0000:error:030000A3:digital envelope routines:EVP_PKEY_set_params:invalid key:crypto/evp/p_lib.c:2353:
Ping, still broken the same way. Looks like an OpenSSL 3.x bug.
This affects 15.6 as well https://openqa.opensuse.org/tests/4170847