Skip to content

TLS transport: mutual TLS (PEM client cert/key) + PEM-honest URI keys #21

Closed

Description

@rigazilla

Sub-issue of #10. Follows #18 (server-authenticated TLS).

Adds client-certificate authentication (mutual TLS) and removes the trust-store URI key ambiguity, staying PEM-only (no JKS/PKCS12 — consistent with the #18 trust-store decision).

Scope

  • Mutual TLS: PEM client certificate chain + private key (+ optional passphrase) presented to the server. TlsConfig.cert_file / key_file / key_password; loaded in Connection::startTls.
  • PEM-honest URI keys: trust_store_file_name → ca_file; new client_cert_file / client_key_file / client_key_password.
  • Fail-fast on Java keystore keys: trust_store_*, key_store_*, key_alias are rejected with a message pointing at the PEM equivalent, so a ported Java URI fails with the exact fix instead of silently misreading a .jks as PEM. (Deliberate backward-compat break on the TLS transport: server-authenticated TLS (PEM) for hotrods:// #18 trust_store_file_name key.)

Still deferred (remain under #10)

  • JKS/PKCS12 keystore formats (PEM only by decision).
  • Protocol/cipher tuning: ssl_protocol, ssl_ciphers, ssl_named_groups, ssl_provider, use_ssl.
  • Non-SCRAM SASL — though EXTERNAL (which authenticates via the client cert) is now unblocked by this work.

Follow-up

  • Mutual-TLS integration coverage: the Docker TlsIntegrationTest needs the Infinispan server configured to require/verify client certs (currently unit-tested only).

Implemented by #20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions