Skip to main content

Module client_certificate

Module client_certificate 

Source
Expand description

TLS client certificates (mTLS) whose private key stays with the host application.

The application supplies the certificate chain and a ClientCertSigner that signs the TLS handshake with a key held in the platform keystore. Only the chain and the signatures cross the FFI boundary.

StructsΒ§

ClientCertificate
A client certificate chain and the signer for its private key.
DelegatedResolver πŸ”’
Ignores the server’s acceptable-issuer hints, since there is only one certificate to offer.
DelegatedSigner πŸ”’
DelegatedSigningKey πŸ”’
UniFFICallbackHandlerClientCertSigner πŸ”’
UniFfiTraitVtableClientCertSigner

EnumsΒ§

ClientCertSignerError
Error returned by a ClientCertSigner.
ClientCertificateError
Why ClientCertificate::validate rejected a certificate.
LeafKeyType πŸ”’
The leaf key types the SDK can sign handshakes for.
TlsSigScheme
A TLS signature scheme a client certificate key can sign with.

ConstantsΒ§

DER_BIT_STRING πŸ”’
DER_INTEGER πŸ”’
DER_SEQUENCE πŸ”’
PROBE_MESSAGE πŸ”’
Not a TLS handshake message, so a signature over it cannot stand in for one.
SCHEME_PREFERENCE πŸ”’
The SDK’s preference order, strongest first. The RSA order matches rustls’ own RSA keys.
UNIFFI_META_CONST_BITWARDEN_API_BASE_CONSTRUCTOR_CLIENTCERTIFICATE_NEW πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_ENUM_TLSSIGSCHEME πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_ERROR_CLIENTCERTSIGNERERROR πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_INTERFACE_CLIENTCERTIFICATE πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_INTERFACE_CLIENTCERTSIGNER πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_METHOD_CLIENTCERTSIGNER_SCHEMES πŸ”’
UNIFFI_META_CONST_BITWARDEN_API_BASE_METHOD_CLIENTCERTSIGNER_SIGN πŸ”’

StaticsΒ§

UNIFFI_TRAIT_CELL_CLIENTCERTSIGNER πŸ”’

TraitsΒ§

ClientCertSigner
Signs TLS handshakes with the private key of a client certificate, which never leaves the host application.

FunctionsΒ§

der_expect πŸ”’
Splits the DER element at the start of der into its content and the bytes after it, if its tag is tag.
leaf_key_type πŸ”’
rsa_modulus_bits πŸ”’
Returns the bit length of the modulus of a DER RSAPublicKey.
uniffi_bitwarden_api_base_fn_init_callback_vtable_clientcertsigner
verifies πŸ”’