-2

I tried to crawl a project of mine with scrapy and received a warning which worries me. The config seems to be wrong, but everything works as expected. What is the reason for DNSMismatch and how can I fix this?

WARNING: Remote certificate is not valid for hostname "www.findix.de"; VerificationError(errors=[DNSMismatch(mismatched_id=DNS_ID(hostname=b'www.findix.de'))])

merlin
  • 2,093
  • 11
  • 39
  • 78
  • Check the certificate? This post is so vague that I'm not really sure if you can get any other answer. – Michael Hampton Jan 06 '19 at 15:04
  • The certificate looks fine when checked in google chrome. – merlin Jan 06 '19 at 15:10
  • Is your crapwler sending a proper http header? Including a host name? It may be a casde of getting the WRONG certificate becasue of not sending a header. Sending the site header is part of the http standard, btw., – TomTom Jan 06 '19 at 18:07

1 Answers1

0

We can tell that your certificate has

  • SANs for www.findix.de and findix.de,
  • chain for intermediate certificates and
  • is currently valid.

This certificate would work on any major browser, and that's the only thing you should worry about. Scrapy seems known to have this kind of false errors before and is not something your users would be using, anyway. I woudn't spend too much time trying to fix this, if it works.

Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129