Hi,

Can you help me how to configure stunnel client to use TPM for mutual TLS authentication? I want to connect with mTLS to a remote server then make this connection available for localhost without mTLS.

Thanks for your help in advance!

Here is my configuration so far without TPM: 

 

debug = debug

output = /tmp/stunnel.log

foreground = yes

 

[mtls_client]

client = yes

accept = 127.0.0.1:12019

sni = server-with-mtls.example.com

checkHost = server-with-mtls.example.com

connect = 1.2.3.4:443

verifyChain = yes

CApath = /etc/ssl/certs/

cert = client.crt

key = client.key

 

Thanks & br,

Gábor Nyíri,