add-ons / plugin.video.viervijfzes

Kodi add-on to watch video-on-demand content from the Play 4, Play 5 and Play 6 channels.
https://github.com/add-ons/plugin.video.viervijfzes/wiki
GNU General Public License v3.0
50 stars 12 forks source link

Certificate did not match expected hostname #103

Closed fsmeets84 closed 2 years ago

fsmeets84 commented 2 years ago

I live in The Netherlands and installed the addon within Kodi on an Android TV media device. However, to watch most of the content I need to be connected with a Belgium VPN.

  1. I connected with a Belgium VPN in Surfshark (https://surfshark.com/nl/)
  2. In Kodi I try to start any video with geo filter.

Then I immediately see the message: One or more items failed to play. Check the log for more information about this message.

So I have check in the log file and the problem is that expected hostame (stream1-vod.cdn1.sbs.prd.telenet-ops.be) does not match with my hostname *.prod.surfshark.com', 'prod.surfshark.com. See log below. Actually it's more a feature request than a bug I think :)

==================================================================================

2022-02-17 10:55:56.216 T:16948 WARNING : [plugin.video.viervijfzes] [urllib3.connection] Certificate did not match expected hostname: stream1-vod.cdn1.sbs.prd.telenet-ops.be. Certificate: {'subject': ((('commonName', '.prod.surfshark.com'),),), 'issuer': ((('countryName', 'GB'),), (('stateOrProvinceName', 'Greater Manchester'),), (('localityName', 'Salford'),), (('organizationName', 'Sectigo Limited'),), (('commonName', 'Sectigo RSA Domain Validation Secure Server CA'),)), 'version': 3, 'serialNumber': 'E9EC80AB80B5473E22711F7A6D03487A', 'notBefore': 'Jan 13 00:00:00 2022 GMT', 'notAfter': 'Jan 13 23:59:59 2023 GMT', 'subjectAltName': (('DNS', '.prod.surfshark.com'), ('DNS', 'prod.surfshark.com')), 'OCSP': ('http://ocsp.sectigo.com',), 'caIssuers': ('http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt',)} 2022-02-17 10:55:56.217 T:16948 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

michaelarnauts commented 2 years ago

At the first look, I think that your surfshark VPN is intercepting the HTTPS connection, and they really really shouldn't be doing this. They should be able to relay the connection without messing with the certificates just fine.

Maybe it's a setting you can disable somewhere so it doesn't try to hijack secure connections?

michaelarnauts commented 2 years ago

Closed. This seems to be an issue with the VPN provider that is doing mitm stuff.