Is it possible to use SSL private keys stored in an HSM for TLS requests and signing payload?


For one of my projects I need to make client requests to an external HTTP-server via TLS and send signed payload. For both TLS and signing procedure I should use custom SSL certs. Taking into consideration pretty sensible payload information (banking transactions requests) I would like to use an HSM for keeping private certificates secure.

So here is the question: is it possible to use a HSM (probably via PKCS#11) for HTTPS requests and for signing payload in Elixir? Sadly can’t find any info about it here or on Google.