-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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
Labels
No labels