I am trying to install a collector using the Setup wizard. The wizard generates the wget command download and installs the collector, but the site's certificate cn does not match the requested hostname:
Command generated by wizard:
wget https://collectors.us2.sumologic.com/rest/download/linux/64 -O SumoCollector.sh && chmod +x SumoCollector.sh && ./SumoCollector.sh -q -Vsumo.token_and_url=randomtokengenerated=
Resolving collectors.us2.sumologic.com... 220.127.116.11, 18.104.22.168, 22.214.171.124, ...
Connecting to collectors.us2.sumologic.com|126.96.36.199|:443... connected.
ERROR: certificate common name “service.us2.sumologic.com” doesn’t match requested host name “collectors.us2.sumologic.com”.
To connect to collectors.us2.sumologic.com insecurely, use ‘--no-check-certificate’.
Why am I receiving this error for the certificate mismatch?
There is a known issue with some older versions of WGET where that function does not correctly check the Server Alternate Name (SAN) property in an SSL certificate, resulting in the message your seeing. More information can be found in the following bug report.
It is recommended to upgrade wget to a more recent version in order to resolve this issue. A less secure option is to use the --no-check-certificate flag when using wget to download.