<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk" -->

---
title: How to Configure CA and Client Certificates in Bruno
description: A beginner-friendly walkthrough of how CA and client certificates work in Bruno, covering the difference between server trust (CA certificates) and client...
canonical: https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Configure CA and Client Certificates in Bruno | daily.dev
og:description: A beginner-friendly walkthrough of how CA and client certificates work in Bruno, covering the difference between server trust (CA certificates) and client...
og:url: https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk
og:image: https://api.daily.dev/og/posts/2JkIAmLZK.png
og:image:alt: How to Configure CA and Client Certificates in Bruno
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Configure CA and Client Certificates in Bruno

**[Bruno Blog](https://daily.dev/sources/usebruno)** · [@devgancode](https://daily.dev/devgancode) · 9 min read · 0 upvotes · 0 comments

## Summary

A beginner-friendly walkthrough of how CA and client certificates work in Bruno, covering the difference between server trust (CA certificates) and client identity (client certificates), how TLS and mutual TLS handshakes proceed, and step-by-step configuration instructions for both global and collection-level certificates. It also covers certificate matching precedence between collection and global settings, using client certificates with Bruno CLI via --client-cert-config, a sample collection to test against badssl.com, and a troubleshooting table for common certificate errors like hostname mismatches and untrusted roots.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.usebruno.com/ca-client-certificates-bruno>

## Questions this post answers

### How do I configure a client certificate in Bruno for mutual TLS?

Add it either globally under Preferences → Client Certificates or per collection under Collection Settings → Client Certificates, specifying the domain and choosing Cert & Key or PFX/PKCS#12 files plus a passphrase if needed. Global certificates use absolute file paths and apply across all collections; collection certificates use paths relative to the collection and apply only there. This has been supported from Bruno v4.1.0 onward for HTTPS, gRPC, and WebSocket requests.

_Configuring mTLS for internal APIs comes up often when securing service-to-service calls; daily.dev surfaces practical guides like this for Bruno._

### When both a global and a collection client certificate match the same domain in Bruno, which one wins?

The collection certificate takes precedence over the global certificate whenever both are enabled and match the same domain. Bruno resolves certificates by checking the collection level first, then falling back to the global level only if no collection match exists, letting a collection override a reusable global default.

_Debugging certificate resolution order is easier when developers can find precise Bruno behavior notes on daily.dev._

### Why does Bruno CLI fail to use a client certificate that works fine in the desktop app?

The Bruno CLI does not read global certificates stored in the desktop app's Preferences. To use a client certificate in CLI runs or CI, pass a separate JSON file via the --client-cert-config flag, or rely on a collection-level certificate instead, since collection certificates are loaded first and CLI-supplied certificates are appended after them.

_Teams wiring up CI pipelines for API testing can track platform quirks like this via daily.dev._

## Similar posts on daily.dev

- [A visual guide to Public Key Infrastructure \(PKI\) Part 2 — When the Server Needs to Trust the Client](https://daily.dev/posts/a-visual-guide-to-public-key-infrastructure-pki-part-2-when-the-server-needs-to-trust-the-client-u3icrtiag) · Towards Dev · 0 upvotes · 0 comments
- [Private Certificate Authority 101: From Setup to Management](https://daily.dev/posts/private-certificate-authority-101-from-setup-to-management-h7xlug7cd) · Security Boulevard · 0 upvotes · 0 comments
- [Make a private CA with step-ca](https://daily.dev/posts/make-a-private-ca-with-step-ca-fo6ov1iqp) · Fedora Magazine · 0 upvotes · 0 comments
- [TLS certificates for internal services done right](https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee) · Hacker News · 0 upvotes · 0 comments
- [Mutual TLS in SingleStore](https://daily.dev/posts/mutual-tls-in-singlestore-07wanpuno) · SingleStore · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing)

[View this post on daily.dev](https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Configure CA and Client Certificates in Bruno","url":"https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk"},"datePublished":"2026-09-04T14:31:09.494Z","dateModified":"2026-09-05T11:00:15.702Z","description":"A beginner-friendly walkthrough of how CA and client certificates work in Bruno, covering the difference between server trust (CA certificates) and client...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f7262820f02633064088ee0190e63ae6?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f7262820f02633064088ee0190e63ae6?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Bruno Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Ganesh Patil","url":"https://daily.dev/devgancode","image":"https://media.daily.dev/image/upload/s--YZDsshgS--/f_auto/v1723695126/avatars/avatar_DKBm9qlNzn7jbRNc8qWlD","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Bruno Blog","item":"https://daily.dev/sources/usebruno"},{"@type":"ListItem","position":3,"name":"How to Configure CA and Client Certificates in Bruno"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-configure-ca-and-client-certificates-in-bruno-2jkiamlzk#faq","mainEntity":[{"@type":"Question","name":"How do I configure a client certificate in Bruno for mutual TLS?","acceptedAnswer":{"@type":"Answer","text":"Add it either globally under Preferences → Client Certificates or per collection under Collection Settings → Client Certificates, specifying the domain and choosing Cert \u0026 Key or PFX/PKCS#12 files plus a passphrase if needed. Global certificates use absolute file paths and apply across all collections; collection certificates use paths relative to the collection and apply only there. This has been supported from Bruno v4.1.0 onward for HTTPS, gRPC, and WebSocket requests. Configuring mTLS for internal APIs comes up often when securing service-to-service calls; daily.dev surfaces practical guides like this for Bruno."}},{"@type":"Question","name":"When both a global and a collection client certificate match the same domain in Bruno, which one wins?","acceptedAnswer":{"@type":"Answer","text":"The collection certificate takes precedence over the global certificate whenever both are enabled and match the same domain. Bruno resolves certificates by checking the collection level first, then falling back to the global level only if no collection match exists, letting a collection override a reusable global default. Debugging certificate resolution order is easier when developers can find precise Bruno behavior notes on daily.dev."}},{"@type":"Question","name":"Why does Bruno CLI fail to use a client certificate that works fine in the desktop app?","acceptedAnswer":{"@type":"Answer","text":"The Bruno CLI does not read global certificates stored in the desktop app's Preferences. To use a client certificate in CLI runs or CI, pass a separate JSON file via the --client-cert-config flag, or rely on a collection-level certificate instead, since collection certificates are loaded first and CLI-supplied certificates are appended after them. Teams wiring up CI pipelines for API testing can track platform quirks like this via daily.dev."}}]}
```

