Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epgdata.com ceases operations #164

Closed
malvinas2 opened this issue Feb 20, 2022 · 10 comments
Closed

epgdata.com ceases operations #164

malvinas2 opened this issue Feb 20, 2022 · 10 comments
Labels

Comments

@malvinas2
Copy link

egpData discontinues its service. It is no longer possible to purchase a new annual subscription. According to their website existing subscriptions remain valid until the PIN expires :-(
(Source: epgdata.com)

Regarding "existing subscriptions", I get the following error message (still using xmltv 0.5.69 on Ubuntu 16.04):

Downloading include zip file
Unable to retrieve data from URL http://www.epgdata.com/index.php?action=sendPackage&iOEM=&pin=yzZaumsHFCI2DfH6ZFblablablabla&dayOffset=0&dataType=xml:
Can't connect to www.epgdata.com:443 (certificate verify failed) (500) at /usr/bin/tv_grab_eu_epgdata
line 313.
Couldn't open /tmp/wl2WehSxob/genre.xml:
No such file or directory at /usr/bin/tv_grab_eu_epgdata line 373.
 at /usr/bin/tv_grab_eu_epgdata line 373.

Any alternatives?

@honir
Copy link
Contributor

honir commented Feb 20, 2022

Can't connect to www.epgdata.com:443 (certificate verify failed)

Have you tried updating the certificate chain on your Ubuntu 16.04 box?

@pmhahn
Copy link
Contributor

pmhahn commented Feb 20, 2022

gnutls-cli --verbose --port 443 www.epgdata.com

    Issuer: CN=Thawte RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US

The issuer in the intermediate CA and not the root CA. The Web-Server is supposed to include it within the data it is sending to the client, as clients only have the root certificates. The intermediate certificate is required to build the complete trust chain from the server CA over the intermediate CAs up to a root CA.

This is a upstream bug: www.epgdata.com must include the intermediate CA. I'll try to contact them.

@pmhahn pmhahn added the broken label Feb 20, 2022
@malvinas2
Copy link
Author

malvinas2 commented Feb 20, 2022

I am using Ubuntu 16.04.7 LTS with ESM enabled and up to date.
But even the latest version of ca-certificates (20210119~16.04.1ubuntu0.1~esm1) throws the error mentioned above.

@pmhahn
Copy link
Contributor

pmhahn commented Feb 20, 2022

ca-certificates only includes the ~129 root CA certificates, but not the many more intermediate CA certificates. As www.epgdata.com does not include them into their SSL/TLS answer, any client can no longer validate the chain of trust from the server certificate via the intermediate CA certificates up to the trusted root CA certificates.

It's a upstream bug, not a bug in XMLTV, OS component or browser. They must fix their web server.

If you need a work-around, you can install the intermediate CA manually on your host:

# You must be user root:
suod -s
# Download the intermediate CA from the official Web-Site of DigiCert
wget -O /usr/local/share/ca-certificates/xmltv.crt https://cacerts.digicert.com/ThawteRSACA2018.crt.pem
# Verify the certificate against the Root CA shipped by the trusted `ca-certificates` package
openssl verify -trusted /etc/ssl/certs/DigiCert_Global_Root_CA.pem /usr/local/share/ca-certificates/xmltv.crt
# Update the CA trust store
update-ca-certificates
# Become normal user again
exit
# Verify download works again:
wget -O/dev/null https://www.epgdata.com/

Afterwards you should be able to update your schedule again by running mythfilldatabase --only-update-guide -- --days 14 (or your equivalent) as the right user (probably mythtv).

@hirschmich
Copy link

Is there also a workaround using the windows binaries from http://alpha-exe.xmltv.org/?
I've installed the intermediate certificate into the windows certificate store but xmltv.exe does not seem to respect it. It still gives the error message:
Can't connect to www.epgdata.com:443 (500)

@pmhahn
Copy link
Contributor

pmhahn commented Feb 28, 2022

Is there also a workaround using the windows binaries from http://alpha-exe.xmltv.org/?

Sorry, I'm Linux only since 25 years and do not know how Windows or Perl their works regarding to CA certificates.

epgdata.com claimed to have fixed the problem by private mail to me, but the certificate chain is still incomplete as of today; I have contacted them again.

@hirschmich
Copy link

hirschmich commented Feb 28, 2022

I finally decided to recompile the Windows binaries and make the https request ignore all certificate errors. Maybe not the best solution but works.

@rmeden
Copy link
Contributor

rmeden commented Feb 28, 2022

@witesbk Good to know someone else can make binaries.. I assume you followed the procedure I put on xmltv.org? I tried to replicate the problem with tv_grab_eu_epgdata, but I didn't have an account.

@hirschmich

This comment was marked as off-topic.

@rmeden

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants