@Kan_Li : I am writing on behalf of @CristianeBP and Lorenzo Verniani (they got problems to access this thread):
Good morning Kan Li,
thank you very much for your reply.
Your answer is about my 2nd test, and ok, it is a limitation and we need to wait some updates.
RGs: @Lorenzo Verniani (Customer) let us know how severe this limitation is for ABB.
But in the 3rd test, I generated both key pair using SETool, not using OPENSSL, and the verification fails equally. How can you explain that?
Thanks again,
Cristiane Bellenzier Piaia
RGs: I repeat 3rd test here:
3 -both key pairs generated inside the SE using seTool:
#seTool genRSA 2048 0x00000003 127.0.0.1:8040
# seTool getRSARef 0x00000003 a.pem 127.0.0.1:804
# openssl req -new --provider /usr/lib/libsssProvider.so --provider default -x509 -new -nodes -key a.pem -subj "/OU=NXP Plug Trust CA/CN=NXP RootCAvExxx" -days 4380 -out a.cer
sssprov-flw: Get random data from SE05x
sssprov-flw: Performing RSA sign using SE05x
#seTool genRSA 2048 0x00000020 127.0.0.1:8040
# seTool getRSARef 0x00000020 b.pem 127.0.0.1:8040
# openssl req -new --provider /usr/lib/libsssProvider.so --provider default -key b.pem -subj "/CN=NXP_SE050_TLS_CLIENT_RSA" -out b.csr
sssprov-flw: Performing RSA sign using SE05x
# openssl x509 -req --provider default -in b.csr -CAcreateserial -out b.cer -days 5000 -CA a.cer -CAkey a.pem
Certificate request self-signature ok
subject=CN = NXP_SE050_TLS_CLIENT_RSA
# openssl verify -partial_chain -trusted a.cer b.cer
CN = NXP_SE050_TLS_CLIENT_RSA
error 7 at 0 depth lookup: certificate signature failure
error b.cer: verification failed
2090F276:error:0200008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding:../openssl-3.0.13/crypto/rsa/rsa_pk1.c:75:
2090F276:error:02000072:rsa routines:rsa_ossl_public_decrypt:padding check failed:../openssl-3.0.13/crypto/rsa/rsa_ossl.c:598:
2090F276:error:1C880004:Provider routines:rsa_verify:RSA lib:../openssl-3.0.13/providers/implementations/signature/rsa_sig.c:774:
2090F276:error:06880006:asn1 encoding routines:ASN1_item_verify_ctx:EVP lib:../openssl-3.0.13/crypto/asn1/a_verify.c:217: