I wrote a shell script using wget that consumes a webservice I made across the internet, and it works like a charm.
Then i scheduled it to run every hour on a cronjob, and it simply doesn't work. The crond starts the service but wget fails to stablish a connection. When i change the URL from https to http (without redirecting to https, obviously) it works normally too.
The exit code for wget when it fails is always 1 and I couldn't find ways to debug it any further. Any tips?