thetvdb api Certificate expired workaround

Any questions? Need some help?
Post Reply
olqs
Posts: 2
Joined: 23 Jun 2020, 13:12

thetvdb api Certificate expired workaround

Post by olqs » 23 Jun 2020, 13:55

Today the certificate of https://api.thetvdb.com is expired.

If you want to use the api with the expired certificate, you have to trust the certificate manually. (e.g. add the certificate to the default ca store of java)

This workaround will only work till the next java update.

Copy the following text with BEGIN and END Certificate to a file:

Code: Select all

-----BEGIN CERTIFICATE-----
MIIFlzCCBH+gAwIBAgIQAtXASKE/5zpmYb5+Sq4E9jANBgkqhkiG9w0BAQsFADBG
MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRUwEwYDVQQLEwxTZXJ2ZXIg
Q0EgMUIxDzANBgNVBAMTBkFtYXpvbjAeFw0xOTA1MjMwMDAwMDBaFw0yMDA2MjMx
MjAwMDBaMBgxFjAUBgNVBAMMDSoudGhldHZkYi5jb20wggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCjubNEouIzvjpiIQEH5rj1Aw6FYrpTT0jyYL6s/6dj
pmsFfAyOP/QAIyluYPqkOWe6oXchqW3+EHcS8G3185511qsF9RJa+ZiZvasUD65P
juu03QahUXhpmUyrf/E1yKucFDCXKajd0XgsBsi/gWW9i7YAvx/d0jKTuYAzDjw0
JsCgWrfsgz8jlgnuBEVeVDpyMVTS+VKRnwGuCIXmmNZAalvVpK6u8Yi6hgvxKWW7
SVRBiTaBb0xol/YUJeParnBlMXE319xwDfxO2fl3UsYkSfiZ/19iPTss99ZFpGPv
ds3LrhX4OPHTzXePwi8Z3VbNBeGqeyWLaoxk4I0HNAedAgMBAAGjggKtMIICqTAf
BgNVHSMEGDAWgBRZpGYGUqB7lZI8o5QHJ5Z0W/k90DAdBgNVHQ4EFgQUrEek3ehl
O+VPsts6ApZ4nmPr56wwTQYDVR0RBEYwRIINKi50aGV0dmRiLmNvbYILdGhldHZk
Yi5jb22CEioucHJvZC50aGV0dmRiLmNvbYISKi5iZXRhLnRoZ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j29VkwxIc88b707STno6mWXRwtwdn/JPjhqqAWgA4dU1BEnA==
-----END CERTIFICATE-----
Locate your cacerts keystore of your java installation. Default is lib/security/cacerts in your java home.

Add the certificate to this keystore with following command:
keytool -importcert -keystore /path/to/your/cacerts -alias thedvdb -file /path/to/file/with/certificate

The password needed is:

Code: Select all

changeit

User avatar
rednoah
The Source
Posts: 18537
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: thetvdb api Certificate expired workaround

Post by rednoah » 23 Jun 2020, 15:01

Just a temporary issue on their end, just try again tomorrow and it'll probably have fixed itself:
https://twitter.com/thetvdb/status/1275424356982718464
:idea: Please read the FAQ and How to Request Help.

Post Reply