usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.56k stars 1.27k forks source link

Support Adding Multiple SSL Certificates at Runtime - CLI #3503

Closed Pragadesh-45 closed 14 hours ago

Pragadesh-45 commented 2 days ago

I have checked the following:

Describe the feature you want to add

Implement the ability to add multiple SSL certificates during runtime. This enhancement allows users to store SSL certificate details in a collection and execute them using the CLI.

eg: bru run --client-cert-config clientCertConfig.json

Current scenario:

In the latest versions, there is a need to store the Certificate inside a collection

Mockups or Images of the feature

mockup clientCertConfig.json

{
  "enabled": true,
  "certs": [
    {
      "domain": "google.com",
      "type": "cert",
      "certFilePath": "certs/server_5.crt",
      "keyFilePath": "private/server_5.key",
      "passphrase": "yes, i got uploaded!--google"
    },
    {
      "domain": "usebruno.com",
      "type": "cert",
      "certFilePath": "certs/server_1.crt",
      "keyFilePath": "private/server_1.key",
      "passphrase": "yes, i got uploaded--usebruno!"
    },
    {
      "domain": "g.cn",
      "type": "pfx",
      "pfxFilePath": "pfx/server_3.pfx",
      "passphrase": "yes, i got uploaded!--pfx--g.cn"
    }
  ]
}