title: Ruby: Use key that is stored in TPM
body: <p>I'm looking for a way to open a HTTPS connection while the necessary certificates are stored in a TPM. </p>
  
  <p>Right now I am using HTTPClient to open the connection and everything works fine as long as the certificates are stored on disk. </p>
  
  <pre><code>  http = HTTPClient.new
    request = "#{address}/#{command}"
    http.ssl_config.set_client_cert_file("#{CLIENT_CERT}",
                                         "#{CLIENT_KEY}")
  </code></pre>
  
  <p>How can I do this if the client private key is stored in a TPM?</p>