drGrove / mtls-cli

A short-lived certificate tool based on the Zero Trust network model
Other
27 stars 8 forks source link

Implement via PKCS#11 #55

Open james-callahan opened 1 year ago

james-callahan commented 1 year ago

Instead of loading the certificate into the browser store and all the incompatibilites and annoyances that comes with, I think mtls-cli could be implemented as a PKCS#11 library: Browsers support using PKCS#11 to load certificates and handle their private key operations.

Last time I looked into this the easiest way to create virtual/custom PKCS#11 devices was libtpm2 (https://github.com/tpm2-software). By using e.g. libtpm2-pkcks11 you could even bind the key to a specific machine, accomplishing a major goal in the zero-trust networking paper.