[Solved] Wget + SSL on a cronjob

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?

Well... I installed the "true" wget using opkg and it seems like it was a PATH error, libssl.so wasn't linked to /usr/lib (don't know why). I linked and it worked.

Thanks folks.

Solved

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.