Skip to content

Feat: Support for Mutual TLS (mTLS) / Client Certificates #708

@rafaelszp

Description

@rafaelszp

Did you search for existing issues already?
Yes, I am following up on the discussion started in issue #702.

Is your feature request related to a problem? Please describe.
I am currently unable to perform requests to services that require Mutual TLS (mTLS) authentication. In many enterprise environments and third-party integrations, the server requires the client to provide a certificate to verify its identity. Without support for client-side certificates, Slumber cannot be used for testing secure APIs that mandate mutual validation.

Describe the solution you'd like

I would like Slumber to support mTLS configuration. A key improvement would be supporting both separate files and bundled formats:

  • Initial support: Ability to specify a Client Certificate (.crt/.pem) and a Private Key (.key).

  • Enhanced support (PFX): Ability to use a single PFX/PKCS12 file, which is a standard for bundling certificates and private keys in enterprise environments.

  • Passphrase handling: A way to securely provide a passphrase for PFX files or encrypted private keys (preferably via environment variables or a prompt).

Describe alternatives you've considered

  • Using curl with --cert, --key, or --cert-type P12.

  • Using a local proxy to handle the handshake, which is inconvenient for a TUI-based workflow.

Additional context

The implementation could follow the logic used by Postman for certificate management: Postman mTLS Documentation.

As discussed in this comment, adding this would bridge a major gap for developers working with banking, government, or high-security third-party APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew behavior to enable things that were previously not possiblehelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions