Adapters
Confium’s Mode 2 (PKI Drop-in) works through adapter libraries. Each adapter speaks a standard API (PKCS#11, OpenSSL provider, JCE, TLS callback) and routes operations into Confium threshold sessions. This section documents each adapter in depth.
Choose your adapter
| Existing consumer | Use this adapter |
|---|---|
OpenSSL 1.x with ENGINE_pkcs11 |
PKCS#11 |
| OpenSSL 3.0 native (modern nginx, curl) | OpenSSL provider |
| Java application via JCA | JCE provider |
| TLS library with signature callback | TLS signer |
| Anything else speaking PKCS#11 | PKCS#11 |
The adapter pattern
Every adapter follows the same shape:
- The existing consumer makes a standard API call (e.g.
C_Sign(),EVP_PKEY_sign(),Signature.sign()). - The adapter translates the call into a Confium operation (sign, verify, key derivation, etc.).
- The adapter dispatches to a coordinator.
- The coordinator runs a threshold session.
- The result returns through the standard API — the consumer never knows it went through Confium.