Having problem with WGET command. Keep asking for certificate when virtual server does not have SSL enabled

Hello,

I ran the command from root# wget OPTION http://exampledomainname.com/update. The error message came back about SSL certificate. I do not have SSL enabled on this virtual server. Any idea why it's not working. Attached is the screenshot capture. IP and domain obscured for security reason.

Thank you in advance for your help.

Status: 
Closed (fixed)

Comments

Howdy -- it looks like the URL you are accessing is doing a redirect, causing wget to instead download it's content from a SSL secured address.

You can pass in the --no-check-certificate option to wget in order to have it access that SSL certificate without throwing an error, as it appears that the certificate may be self-signed.

Hi Andrey,

Thank you. It turned out to be a firewall issue on our end. We had to disabled the "DNS Rebinding Checks" and that did the trick.

Now we have different problem. I can't get this command to run under the Cron Job "wget -O - http://exampledomain.com/update".

I placed the command in the "Command" field under Scheduled Cron Job section. I set it for a 5 minutes interval but it never seems to do anything. I also set the Cron job logs under System Logs to "active", nothing seems to show up in the log.

When I clicked on "Run now" or "Save and run now", it seems to work. Just the scheduling part seems to have a problem.

Any pointer would be greatly appreciate. Thank you.

If you look in /var/log/syslog, you can see a list of all the cron jobs that are running. You can search that file for the term "wget" to see if that's being run at all in there.

Hi Andrey,

Thanks. It seems to be running. I wanted it to run every five minutes. Instead, it does the cron job every hour at 7:05, 8:05, 9:05, etc.

On the "When to execute", I selected "Time and dates selected below...". Then on the "Minutes" section, I chose "5". I left the rest of the options for "Hours/Days/Months/Weekdays" default to "All".

What did I do wrong?

In the "Minutes" section, the number there tells cron to execute it when the clock reaches that minute. So when you select "5", that tells cron to execute it 5 minutes after the hour.

What I'd suggest for what you want is to select every minute you want it executing on -- 5,10,15,20, etc.

Thanks very much! It works.