Skip to content

Add option --skip-verify to webhook listen #17

@renarsvilnis

Description

@renarsvilnis

Proposal

would love to see an --skip-verify option on the webhook listen command similar to what stripe does on its own stripe CLI tool (see docs).

Usage case

We use a self-signed SSL certificate for running servers locally and for now, we have to proxy the requests from paystack-cli -> proxy HTTP server that ignores SSL verification --> actual server. While it's workable it's a somewhat "dirty" solution to the problem.

All you would need to do is add rejectUnauthorized to http/https agent (probably dynamically base it on the forward to URL) based on the CLI input flag

agent: new HttpsAgent({
          /**
           * We're using a self-signed certificate, thus disabling
           * TLS certificate validation so that we can connect.
           */
          rejectUnauthorized: false,
        }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions