wget https://skype.com -O - > /dev/nullisn'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?
Force wget to download only from HTTPS?
bash;wget;ssl
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.