Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
wget https://skype.com -O - > /dev/null

isn't good. I just want to create a short bash script to check that an HTTPS cert is valid or no. i think wget doesn't connects if the cert is invalid. i just need a parameter? to wget to only work on HTTPS! are there any?

share|improve this question
What do you actually want? Check if a certificate is valid, or force wget to connect only if a certificate is valid? – Lekensteyn Jun 16 '11 at 8:35
What do you see as a valid cert? – echox Jun 16 '11 at 8:36
up vote 2 down vote accepted

For your purpose, just call wget. It will retrieve the certificate and refuse to connect if the certificate is invalid.

Obviously, if you pass an https:// URL, wget will connect using HTTPS.

share|improve this answer
@LanceBaynes: I don't see any connection between this, your question and my answer. – Gilles Jun 16 '11 at 9:54
y, i see now :) ok, then it's ok. – LanceBaynes Jun 16 '11 at 10:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.