Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
renarsvilnis opened this issue Nov 16, 2022 · 0 comments
Open

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

renarsvilnis opened this issue Nov 16, 2022 · 0 comments

Comments

@renarsvilnis
Copy link

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,
        }),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant