Skip to content
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

RSA key not available for TLS communication from client #280

Open
kishansinghtks opened this issue Jan 5, 2024 · 0 comments
Open

RSA key not available for TLS communication from client #280

kishansinghtks opened this issue Jan 5, 2024 · 0 comments

Comments

@kishansinghtks
Copy link

kishansinghtks commented Jan 5, 2024

I am using tpm2tss for secure communication

command: ./tpm2tss-genkey -a rsa -s 2048 -P 0x81000000 mykey

and then extract the public key using the following command.
openssl rsa -engine tpm2tss -inform engine -in mykey -pubout -outform pem -out mykey.pub

For client connections I use the command: openssl s_client -engine tpm2tss -connect example.com:9200 -CAfile ~/myCA.pem -cert client-crt.signedby.myca.pem -keyform engine -key mykey

Is there any way I can decrypt the mykey to a RSA key or use the public key for client connections as my app needs it to be in RSA format and the check for it, the code where it is failing is as below
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant