apilayer / restcountries

Get information about countries via a RESTful API
https://restcountries.eu
Mozilla Public License 2.0
2.24k stars 354 forks source link

Invalid certificate for restcountries.eu #251

Closed meta72 closed 2 years ago

meta72 commented 2 years ago

The SSL certificate for restcountries.eu is issued for shortener.secureserver.net making requests fail. Please update your certificate.

mcknight89 commented 2 years ago

The same issue, if I ignore the SSL, I get a Cloudflare error so my guess is the service is just down.

wollanup commented 2 years ago

it may help :

$ openssl version
> OpenSSL 1.1.0l  10 Sep 2019
$ curl "https://restcountries.eu/rest/v2/all"
> curl: (51) SSL: no alternative certificate subject name matches target host name 'restcountries.eu'

With another server:

$ openssl version
> OpenSSL 1.1.1j  16 Feb 2021
$  curl "https://restcountries.eu/rest/v2/all"
> [{...}] JSON OK
wollanup commented 2 years ago

Also checked https://www.ssllabs.com/ssltest/analyze.html?d=restcountries.eu Result seems bad with message

 This server's certificate is not trusted. 
amatosg commented 2 years ago

you can use https://restcountries.com/ instead :) (it's a clone)

ePascalC commented 2 years ago

Message from apilayer support: We no longer support restcountries.eu; however, we do offer a free tier of a similar API on countrylayer.com. See https://countrylayer.com/documentation/