mreinstein / alexa-verifier

✓ Verify HTTP requests sent to an Alexa skill are sent from Amazon
MIT License
76 stars 23 forks source link

Timeouts downloading cert from behind proxy #44

Closed kyle-wrenn closed 6 years ago

kyle-wrenn commented 6 years ago

I'm getting timeouts when the module tries to download the certificate from S3. This is due to my corporate proxy. Other than forking and updating the configuration for https, do you have any suggestions?

mreinstein commented 6 years ago

can you vpn or otherwise tunnel around the proxy?

kyle-wrenn commented 6 years ago

Unfortunately, no. It looks like if the request module were used then my https_proxy env variable would be respected, but the https module does not.

mreinstein commented 6 years ago

I would suggest talking to whomever is in charge of your internal network and having them allow you to make https requests, or at least whitelist that amazon domain. This module is intended to be used on public facing web servers that host alexa skills.

kyle-wrenn commented 6 years ago

I've opened a pull request to add some flexibility for those with the http_proxy setting enabled.