Skip to content

Unable to verify the first certificate, self-signed certificate not working? #4949

Description

@reallycantpickaname

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

2.6.1

Operating System

Windows 10

Describe the bug

I'm working on a .Net web application and would like to use (the awesome) Bruno to test my API, which runs on localhost via https.

My issue can be reproduced by creating a new ASP.NET Core Web Application with MVC, running the project, trusting the self-signed certificate (created via "dotnet dev-certs https --trust") then browsing to the default endpoint https://localhost:[port]/WeatherForecast.

The endpoint works fine with the self-signed certificate in the browser, and with curl, but with Bruno I receive "unable to verify the first certificate", and the Network Logs from the Timeline show:
Preparing request to https://localhost:7246/WeatherForecast
Current time is 2025-06-20T10:39:08.926Z
GET https://localhost:7246/WeatherForecast
Accept: application/json, text/plain, /
Content-Type: undefined
User-Agent: bruno-runtime/2.6.1
SSL validation: enabled
ALPN: offers h2, http/1.1
Using system default CA certificates
Trying localhost:7246...
DNS lookup: localhost -> 127.0.0.1
Connected to localhost (localhost) port 7246
Socket error: unable to verify the first certificate
there was an error executing the request!
{"code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE"}
{"code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE"}

I've tried exporting the self-signed certificate as a PEM file (e.g. "dotnet dev-certs https --export-path C:\path\to\localhost.pem" --format PEM --password YourStrongPassword --trust" etc.) and adding it to Bruno > Preferences > Use Custom CA Certificate, but the error remains.

I wonder if this is a node TLS trust issue etc., and would appreciate any help with getting this resolved so that I can test localhost https endpoints with Bruno.

Thanks for this excellent app.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image

JIRA

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions