Hi,
When I add no-check-certificate option I recieve an error message:
wget --no-check-certificate --spider https://myserver.domain.com:443/
wget: unrecognized option `--no-check-certificate'
Usage: wget [OPTION]... [URL]...
man wget
Manual entry for wget not found or not installed.
uname -a
AIX xxxx 1 7 00F9857E4C00
Search the internet for the wget website and locate the changelog for the sourcecode. Check the changelog file for the string --no-check-certificate.
But as the first test already showed: Your wget version does not support it. If you really need it, try to get a newer version(download newer version from somewhere, try to get it compiled, ...) or download it at a server with a newer wget version and upload it to your aix box.
if you have openssl installed, you could try to get ther server's cert: echo | openssl s_client -showcerts -connect myserver.domain.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cert.pem
And then use that cert for wget: wget --ca-certificate=cert.pem --spider https://myserver.domain.com
(btw you don't have to append :443 when you're using https://)
there isn't any message concerning a wrong certificate. Is that the complete output of the wget call? If not, please submit the full output, replacing ip addresses and dns names. Otherwise, what does wget -v ... give?
wget -V
GNU Wget 1.9.1
Copyright (C) 2003 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
I had also on another AIX server:
ERROR: cannot verify myserver.domain.com's certificate, issued by 'CN=xxxxxx':
Self-signed certificate encountered.
To connect to myserver.domain.com insecurely, use `--no-check-certificate'
I meant the lower -v Anyway, your version of wget is way too old. Strange that it suggests the --no-check switch, but doesn't accept it. You could get the latest source of wget and compile it, but that would require lots of devel tools and libs. Or use curl, but that can't spider a site, so you would need a helper script, like Unix Shell-Script to crawl a list of website URLs using curl · GitHub.
I assume that's not a self-signed certificate that the remote website is using, rather than the posters system does not have a correct/current set of CA-Certificates in place to verify the the remote websites cert, which causes the same message.
I do not no wether those CA-Certificate Updates are even regularly provided by the vendor and/or installed by the user. In Debian-Linux this is provided by a package called ca-certificates which gets updates regularly.