3 ms·
I know it's not usually a thing to reply to your own comment, but I wanted to add an important detail. The reason for point #1 is that doing all of these thing
by munchbunny 6y ago
I know it's not usually a thing to reply to your own comment, but I wanted to add an important detail.
The reason for point #1 is that doing all of these things in one API is a useful framing of the problem. For example, if you want to just use a certificate or cryptographic key pair regardless of whether the private key is in a file or stored in a hardware module, CryptoAPI unifies that interface so that, if you do it right, you have two orthogonal pieces of code: one that locates the key to use and which adapter to use to talk to the underlying software/hardware, and another to request cryptographic operations on an abstracted key pair. The fact that you're talking to pure software or an actual HSM can be abstracted from the code that needs to sign a challenge.
The API is powerful enough that its abstractions work even for cloud based key storage. For example, AWS Cloud HSM support for CryptoAPI: https://docs.aws.amazon.com/cloudhsm/latest/userguide/ksp-library.html https://docs.aws.amazon.com/cloudhsm/latest/userguide/ksp-li...