-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
priority: lowNice-to-have; can waitNice-to-have; can waitstatus: help wantedrequesting help from the communityrequesting help from the communitytriage queueIssue is in our internal backlog. It's either a bug or a feature enhancement.Issue is in our internal backlog. It's either a bug or a feature enhancement.type: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap
Description
Issue Summary
Getting a self-signed cert error. Our company "injects" a TLS cert into the chain and decrypts all traffic. I suspect there might be something I can put in the config file mentioned (like wget's --no-check-certificate option). I did check around but I don't see the config file options.
Steps to Reproduce
Add a self-signed cert to your certificate path
In the CLI
twilio api:verify:v2:services:verifications:create --service-sid VA... --to +13... --channel sms --custom-friendly-name "test1234" -l debug
Technical details:
twilio-cli/2.21.0 win32-x64 node-v15.14.0
- Command output with debug logging enabled (adding
-l debugto the end of the command):
[DEBUG] Config File: C:\Users\olmsu1e9.twilio-cli\config.json
[DEBUG] Using profile: ${TWILIO_API_KEY}/${TWILIO_API_SECRET}
[DEBUG] Schema for "service-sid": {"maxLength":34,"minLength":34,"pattern":"^VA[0-9a-fA-F]{32}$","type":"string"}
[DEBUG] Schema for "to": {"description":"The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).","type":"string"}
[DEBUG] Schema for "channel": {"description":"The verification method to use. Can be: [email](https://www.twilio.com/docs/verify/email), sms or call.","type":"string"}
[DEBUG] Schema for "custom-friendly-name": {"description":"A custom user defined friendly name that overwrites the existing one in the verification message","type":"string"}
[DEBUG] Provided flags: {"service-sid":"VA...","to":"+13...","channel":"sms","custom-friendly-name":"test1234","cli-log-level":"debug","properties":"sid,to,channel,status,valid,dateCreated","skip-parameter-validation":false,"cli-output-format":"columns"}
[DEBUG] domainName=verify, path=/v2/Services/{ServiceSid}/Verifications, actionName=create
[DEBUG] pathNode=ServiceSid, value=VA...
[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] post https://verify.twilio.com/v2/Services/VA.../Verifications
[DEBUG] Form data:
[DEBUG] Channel=sms&CustomFriendlyName=test1234&To=%2B13...
[DEBUG] Custom HTTP Headers:
[DEBUG] User-Agent: @twilio/cli-core/5.21.0 (twilio-api-client/5.21.0, node.js v15.14.0, win32 10.0.19042 x64, api:verify:v2:services:verifications:create)
[DEBUG] -- END Twilio API Request --
[DEBUG] Found command "api:verify:v2:services:verifications:create" plugin: twilio-cli
» twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio/twilio-cli/issues"
[DEBUG] self signed certificate in certificate chain
[DEBUG] Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
at TLSSocket.emit (node:events:369:20)
at TLSSocket._finishInit (node:_tls_wrap:946:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:720:12)
Metadata
Metadata
Assignees
Labels
priority: lowNice-to-have; can waitNice-to-have; can waitstatus: help wantedrequesting help from the communityrequesting help from the communitytriage queueIssue is in our internal backlog. It's either a bug or a feature enhancement.Issue is in our internal backlog. It's either a bug or a feature enhancement.type: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap