Code Monkey home page Code Monkey logo

Comments (10)

satrox28 avatar satrox28 commented on May 28, 2024 1

@satrox28 When you mentioned

I would like to set the environmental variable for NODE_EXTRA_CA_CERTS and pass the proxy certificate.

I thought you were talking about postman environment variables. If I am understanding correctly, you are talking about setting a system env variable called as NODE_EXTRA_CA_CERTS. Is that right ?

if we have multiple collections have to modify the json every where correct?

Good point. It makes sense to setup one time at one place.

Yes, when the app launches it should have the env injected. I already have http and https proxy as system env variable but it doesn't work with it.

from bruno.

DRob1260 avatar DRob1260 commented on May 28, 2024 1

I am indeed on a Mac. Looking forward to the update. Thanks!

from bruno.

DRob1260 avatar DRob1260 commented on May 28, 2024 1

@DRob1260 Mac builds have been released. Yuu should be able disabled ssl verification in the app preferences.

I saw that, thanks so much!

from bruno.

helloanoop avatar helloanoop commented on May 28, 2024

@satrox28

Glad that you like Bruno !
Currently Bruno does not support using Custom Certificates.

We should be able to build support this feature easily.

I would like to set the environmental variable for NODE_EXTRA_CA_CERTS and pass the proxy certificate.

The way of using environment variables to pass certificates is a "postman" way of doing it. Since bruno stores your collection locally, we can approach this in a way how a developer normally would. We can store the certificates inside a folder and reference it in the config.

Here is what I am thinking

| payment-api-collection
   |-- certs
       |-- ca-bundle.crt
   |-- request1.bru
   |-- request2.bru
   |-- bruno.json

There is bruno.json in every repository. See example
I am thinking of adding a key called security in the config like below.

{
  "version": "1",
  "name": "github rest api",
  "type": "collection",
  "ssl": {
    "cert": "certs/ca-bundle.pem",
    "key": "certs/private.pem",
    "passphrase": "secret",
    "rejectUnauthorized": false // disable cert verification
  }
}

What do you think?

from bruno.

SanichKotikov avatar SanichKotikov commented on May 28, 2024

I have almost the same error: unable to get local issuer certificate.

from bruno.

satrox28 avatar satrox28 commented on May 28, 2024

@helloanoop

Thanks for checking on the feature request. Only concern I have on your proposal is, if we have multiple collections have to modify the json every where correct?. Since it's a nodejs app, can we create a file under the Applications directory with env variable NODE_EXTRA_CA_CERTS and then when nodejs launches the app, based on the value it decides whether to use proxy or not. Can we able to do something like this?.

from bruno.

helloanoop avatar helloanoop commented on May 28, 2024

@satrox28
When you mentioned

I would like to set the environmental variable for NODE_EXTRA_CA_CERTS and pass the proxy certificate.

I thought you were talking about postman environment variables.
If I am understanding correctly, you are talking about setting a system env variable called as NODE_EXTRA_CA_CERTS. Is that right ?

if we have multiple collections have to modify the json every where correct?

Good point. It makes sense to setup one time at one place.

from bruno.

DRob1260 avatar DRob1260 commented on May 28, 2024

Was anyone encountering this issue able to solve this or work around it? I'm definitely interested in using Bruno (coming from Postman). But I need a way to use it with a custom cert

from bruno.

helloanoop avatar helloanoop commented on May 28, 2024

@DRob1260 Which OS are you currently using?

We recently shipped support for disabling ssl verification in #168
Currently this functionality is present in Windows and Linux builds.
Mac builds are delayed due to notarization issues and expected to be fixed by Sep 15th 2023

from bruno.

helloanoop avatar helloanoop commented on May 28, 2024

@DRob1260 Mac builds have been released. Yuu should be able disabled ssl verification in the app preferences.

from bruno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.