Facebook Object Debugger: Curl Error : SSL_PEER_CERTIFICATE SSL: no alternative certificate subject name

喜夏-厌秋 提交于 2019-12-06 06:24:14

问题


I am unable to test the open graph tags on a site using the Facebook object debugger (lint tool) (https://developers.facebook.com/tools/debug/og/object/). The errors returned are:

Object at URL 'https://www.musicharvest.org/' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

Curl Error : SSL_PEER_CERTIFICATE SSL: no alternative certificate subject name matches target host name 'www.musicharvest.org'

and the result is that no open graph tags are interpreted.

The site exists and the SSL certificate contains both www.musicharvest.org and musicharvest.org.

Does anybody have an idea as to what the problem might be here?


回答1:


Searching for this problem I noticed my normal "http" URL I put in the debugger pointed to my registrar, instead of my website. So a DNS thing i thought, and i was right. When i changed the ipv6 AAAA record of my domain and pointed it to the ipv6 address of my server, the "SSL_PEER_CERTIFICATE SSL" error went away for my "https" links.

Maybe this also fixes it for you.

Seems like Facebook does some things with ipv6




回答2:


I had the same issue. The problem is that Facebook addressed to my website using IPv6 protocol. The solution was to delete AAAA records in DNS manager on my hosting. After when I deleted it all started working perfect.



来源:https://stackoverflow.com/questions/25713776/facebook-object-debugger-curl-error-ssl-peer-certificate-ssl-no-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!