I set up my site I have ssl setup and working, works fine in chrome, works fine for postman. For whatever reason it does not work when twilio or curl trys to access it. It gives me a unable to get local issuer error.
The url im trying to get to work is https://anova.me/call/voice?phoneNumber= which is a post endpoint
I have setup a rails 4 webapp running on unicorn and nginx. The ssl cert i got from comodo
You can try https://anova.me/ and see that it works. My nginx looks like:
upstream app_server {
server unix:/var/run/unicorn.sock fail_timeout=0;
}
server {
listen 80;
root /home/rails/companiontv/public;
server_name anova.me;
index index.htm index.html;
listen 443 ssl;
ssl on;
ssl_certificate /home/rails/anova_me.crt;
ssl_certificate_key /home/rails/anova.key;
location / {
try_files $uri/index.html $uri.html $uri @app;
}
location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|flv|mpeg|avi)$ {
try_files $uri @app;
}
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://app_server;
}