wummel / linkchecker

check links in web documents or full websites
http://wummel.github.io/linkchecker/
GNU General Public License v2.0
1.42k stars 234 forks source link

https-certificate-error: certificate for subdomain doesn't match main domain #675

Open SilkAndSlug opened 8 years ago

SilkAndSlug commented 8 years ago

I have a Centos6 server hosting multiple sites, each on its own subdomain, using SSL certs issued by LetsEncrypt (via Certbot-Auto). The SSL cert for subdomain.example.com is installed and working, and SSLLabs gives it 100% (whatever that's worth!)

When I run this command:

linkchecker https://subdomain.example.com

I get this response on every(?) page checked:

[https-certificate-error] SSL warning: hostname
u'subdomain.example.com' doesn't match either of
'example.com', 'www.example.com'.
Cipher ECDHE-RSA-AES256-GCM-SHA384, TLSv1/SSLv3.

Is this error expected? How do I fix it, or suppress it, given that subdomain.example.com and www.example.com are two different sites and without hiding other warnings?

jakubek commented 7 years ago

@SilkAndSlug could you please share example not working subdomain?

codesman commented 7 years ago

I'm using the Windows GUI and I am getting the same error. It seems like it is reading the wrong certificate somehow. When I check https://www.hawaii-aloha.com/ it gives me an error saying hostname 'www.hawaii-aloha.com' doesn't match either of 'www.enclosures.hawaii-aloha.com', 'enclosures.hawaii-aloha.com'

The www.hawaii-aloha.com domain is on a GeoTrust extended validation multi-domain certificate with 4 other domains. The enclosures.hawaii-aloha.com subdomain is on a separate PositiveSSL certificate.

Why is Link Checker testing for a match with enclosures.hawaii-aloha.com? It should only be testing for a match with www.hawaii-aloha.com, correct?

SilkAndSlug commented 7 years ago

Hi @jakubek ,

I can no longer reproduce this error. I vote to close.

That error was from LinkChecker 8.6 on Ubuntu 14.04 LTS. The LTS-upgrade failed, I installed Debian Jessie (and LinkChecker 9.3).

Yours, Steve

dpalic commented 6 years ago

Thank you for the issue report. Sadly this project is dead, and a new team is around with https://github.com/linkcheck/linkchecker for more details please see: #708 Also please close this issue and report it freshly on the new repo https://github.com/linkcheck/linkchecker/issues