title: Scrapy - WARNING: Remote certificate is not valid for hostname
body: <p>I'm using a CrawlSpider with LinkExtractor object to crawl next pages and other links from a homepage. Iv'e got two Links Extractors; one to crawl next pages and another one to crawl some links events (cf. spider code below).</p>
  
  <p>My second linkExtractor works (events links), but the first one doesn't.<br>
  I've got this error in my stack trace when I launched my spider :</p>
  
  <pre><code>[scrapy] WARNING: Remote certificate is not valid for hostname "marathons.ahotu.fr"; u'ssl390453.cloudflaressl.com'!=u'marathons.ahotu.fr'
  </code></pre>
  
  <p>Actually I'm a novice in Python and Scrapy, so my questions are :</p>
  
  <ul>
  <li>What does it mean ?</li>
  <li>How can I fix it ?</li>
  </ul>
  
  <p>Here is my spider code :</p>
  
  <pre><code>import scrapy
  import os
  import re
  from scrapy.spiders import CrawlSpider, Rule
  from scrapy.linkextractors import LinkExtractor
  from scrapy.selector import Selector
  
  if os.path.isfile('ListeCAP_Marathons_ahotu.csv'):
      reecritureFichier = open('ListeCAP_Marathons_ahotu.csv', 'w')
      reecritureFichier.truncate()
      reecritureFichier.close()
  
  class MySpider(CrawlSpider):
      name = 'ListeCAP_Marathons_ahotu'
      start_urls = ['https://marathons.ahotu.fr/calendrier']
  
      rules = (
          # LINKEXTRACTOR N°1 = NEXT PAGES
          Rule(LinkExtractor(allow=('https://marathons.ahotu.fr/calendrier?page=[0-9]{1,100}#list-top',),),),
  
          # LINKEXTRACTOR N°2 = EVENTS LINKS
          Rule(LinkExtractor(allow=('https://marathons.ahotu.fr/evenement/.+',),),follow=True,callback='parse_item'),      
      )     
  
      def parse_item(self, response):  
          selector = Selector(response)
          yield{
              'nom_even':selector.xpath('/html/body/div[2]/div[2]/h1/span[@itemprop="name"]/text()').extract(),
      }    
  
          print('--------------------&gt; NOM DE L\'EVENEMENT :', selector.xpath('//*[@id="jog"]/div[2]/section/article/header/h1/text()').extract())
  </code></pre>
  
  <p>(I'm using Scrapy 1.4.0 with Twisted-17.9.0)</p>