You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to establish a TPM2-based TLS handshake, where the private key in the server certificate is loaded into a persistent handle loaded into a TPM location. I was using based Nuvoton npct75x TPM.
$ openssl s_client -connect localhost:4433 -CAfile ca/root-ca.crt -state
CONNECTED(00000003)
SSL_connect:before SSL initialization
SSL_connect:SSLv3/TLS write client hello
SSL_connect:SSLv3/TLS write client hello
SSL_connect:SSLv3/TLS read server hello
Can't use SSL_get_servername
SSL_connect:TLSv1.3 read encrypted extensions
depth=1 C = US, ST = Minessota, L = Austin, O = IBM Private Limited, OU = ISDL, CN = IBMCA
verify return:1
depth=0 C = US, ST = Minessota, L = Austin, O = IBM, OU = Enterprise, CN = server.domain.com
verify return:1
SSL3 alert read:fatal:internal error
SSL_connect:error in error
6063F176:error:0A000438:lib(20):ssl3_read_bytes:reason(1080):/usr/src/debug/openssl/3.1.3-r0/ssl/record/rec_layer_s3.c:1586:SSL alert number 80
The error indicates that the RSA_R_MISSING_PRIVATE_KEYhttps://github.com/openssl/openssl/blob/master/crypto/rsa/rsa_ossl.c#L392 , I suppose the provider should basically reach out to the TPM device for the private key ? but that is not happening ? can any one look at this and help me figure out what am I missing ?
The text was updated successfully, but these errors were encountered:
it looks like i am hitting this error openssl/openssl#19128 , but what ever i do , itseems like the SSL handshake always goes to the default provider and that cribs about the missing private key.
I was trying to establish a TPM2-based TLS handshake, where the private key in the server certificate is loaded into a persistent handle loaded into a TPM location. I was using based Nuvoton npct75x TPM.
server side logs :
client side logs:
The error indicates that the
RSA_R_MISSING_PRIVATE_KEY
https://github.com/openssl/openssl/blob/master/crypto/rsa/rsa_ossl.c#L392 , I suppose the provider should basically reach out to the TPM device for the private key ? but that is not happening ? can any one look at this and help me figure out what am I missing ?The text was updated successfully, but these errors were encountered: