Cron Job over SSL (wget & curl)

WGET

With wget, you must add the argument –no-check-certificate.
Hitting a PHP script every 15 minutes over SSL:

*/15 * * * * /usr/bin/wget -q -O /dev/null --no-check-certificate https://example.com/script.php

CURL

I haven’t tested the curl example, it was referenced from: http://serverfault.com/questions/476141/cron-jobs-no-longer-work-since-installing-ssl-cert-on-rackspace-cloud-server

For curl, you add -k:

*/15 * * * * /usr/bin/curl -k https://example.com/script.php

Leave a Reply

Your email address will not be published. Required fields are marked *