HTTPS configuration broken

161 views
Skip to first unread message

Marnick L'Eau

unread,
Nov 4, 2017, 2:00:22 PM11/4/17
to GeoNames
I'm looking for a webservice that can provide country flags for a browser addon I've made. geonames seems to be a great choice, assuming I automatically have or can ask for permission to integrate them. There's just 1 problem: your HTTPS configuration is broken.

Your website runs on the domain geonames.org and defaults to http. Trying to switch to https displays a browser error because your https cert is configured for *.geonames.net. Changing the url to http(s) geonames.net redirects the request back to geonames.org. TLDR: your https cert is for geonames.net and your website is set up to force all requests to go geonames.org with http only.

Could this please be fixed?

Cheers

Marc Wick

unread,
Nov 4, 2017, 2:59:05 PM11/4/17
to geon...@googlegroups.com
Hi Marnick

The api services are listed here:
http://www.geonames.org/export/ws-overview.html
There is no webservice at geonames.org.


Best Regards

Marc

Marnick L'Eau wrote:
> I'm looking for a webservice that can provide country flags for a
> browser addon I've made. geonames seems to be a great choice, assuming I
> automatically have or can ask for permission to integrate them. There's
> just 1 problem: your HTTPS configuration is broken.
>
> Your website runs on the domain geonames.org and defaults to http.
> Trying to switch to https displays a browser error because your https
> cert is configured for *.geonames*.net*. Changing the url to http(s)
> geonames.net redirects the request back to geonames.org. TLDR: your
> https cert is for geonames.net and your website is set up to force all
> requests to go geonames.org with http only.
>
> Could this please be fixed?
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google
> Groups "GeoNames" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to geonames+u...@googlegroups.com
> <mailto:geonames+u...@googlegroups.com>.
> To post to this group, send email to geon...@googlegroups.com
> <mailto:geon...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/geonames.
> For more options, visit https://groups.google.com/d/optout.

Marnick L'Eau

unread,
Nov 4, 2017, 4:21:16 PM11/4/17
to GeoNames
Well, I was counting the webhosting of the country flags as a service: http://www.geonames.org/flags/x/

Can they be used for display in browsers by my addon?

Either way though, your https cert is incorrectly configured since it's for .net while your site runs on .org :P
qBtteu[1].png

Marnick L'Eau

unread,
Nov 4, 2017, 4:22:04 PM11/4/17
to GeoNames
My point stands by the way. All those services are offered from the geonames.org domain. The incorrect https certificate applies to all of them.


On Saturday, 4 November 2017 19:59:05 UTC+1, Marc Wick wrote:

Marc Wick

unread,
Nov 4, 2017, 4:31:39 PM11/4/17
to geon...@googlegroups.com
> Well, I was counting the webhosting of the country flags as a
> service: http://www.geonames.org/flags/x/

This is not a service.


> Can they be used for display in browsers by my addon?

No.

Marc

>
> Either way though, your https cert is incorrectly configured since it's
> for .net while your site runs on .org :P
>
> On Saturday, 4 November 2017 19:59:05 UTC+1, Marc Wick wrote:
>
> Hi Marnick
>
> The api services are listed here:
> http://www.geonames.org/export/ws-overview.html
> <http://www.geonames.org/export/ws-overview.html>
> There is no webservice at geonames.org <http://geonames.org>.
>
>
> Best Regards
>
> Marc
>
> Marnick L'Eau wrote:
> > I'm looking for a webservice that can provide country flags for a
> > browser addon I've made. geonames seems to be a great choice,
> assuming I
> > automatically have or can ask for permission to integrate them.
> There's
> > just 1 problem: your HTTPS configuration is broken.
> >
> > Your website runs on the domain geonames.org <http://geonames.org>
> and defaults to http.
> > Trying to switch to https displays a browser error because your https
> > cert is configured for *.geonames*.net*. Changing the url to http(s)
> > geonames.net <http://geonames.net> redirects the request back to
> geonames.org <http://geonames.org>. TLDR: your
> > https cert is for geonames.net <http://geonames.net> and your
> website is set up to force all
> > requests to go geonames.org <http://geonames.org> with http only.
> >
> > Could this please be fixed?
> >
> > Cheers
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "GeoNames" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to geonames+u...@googlegroups.com <javascript:>
> > <mailto:geonames+u...@googlegroups.com <javascript:>>.
> > To post to this group, send email to geon...@googlegroups.com
> <javascript:>
> > <mailto:geon...@googlegroups.com <javascript:>>.
> <https://groups.google.com/group/geonames>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.

Barry Hunter

unread,
Nov 4, 2017, 4:59:02 PM11/4/17
to geonames
On 4 November 2017 at 20:03, Marnick L'Eau <marnic...@gmail.com> wrote:
Well, I was counting the webhosting of the country flags as a service: http://www.geonames.org/flags/x/

Hmm, that sounds more like hotlinking than a webservice. 

Download the flags once, and bundle them with the app, or find your own hosting (that you pay for). 

Countries dont really change often enough that you need a 'live' API for them. 


Marnick L'Eau

unread,
Nov 4, 2017, 5:15:13 PM11/4/17
to GeoNames
Ok then, thanks for the response

Richard Gibson

unread,
Sep 5, 2018, 4:32:04 PM9/5/18
to GeoNames
I just ran into the certificate mismatch as well. What would it take to either expose the resources via HTTPS under geonames.net, or get proper certificate(s) for geonames.org and appropriate subdomains (it seems like one already exists for secure.geonames.org)?

Marc Wick

unread,
Sep 19, 2018, 8:58:18 AM9/19/18
to geon...@googlegroups.com, Richard Gibson
Hi Richard

Do you also want to steal bandwidth? Or what is your special usecase?

This thread is actually giving the very reason why not to change
anything - or at the contrary it gives reason to make access more
difficult.
We have hundreds of requests per second to the flag images from apps not
related to geonames and we do have to take measure to block these
requests or send them to nirvana.

Best Regards

Marc

Richard Gibson wrote:
> I just ran into the certificate mismatch as well. What would it take to
> either expose the resources via HTTPS under geonames.net, or get proper
> certificate(s) for geonames.org and appropriate subdomains (it seems
> like one already exists for secure.geonames.org)?
>
> On Saturday, November 4, 2017 at 4:22:04 PM UTC-4, Marnick L'Eau wrote:
>
> My point stands by the way. All those services are offered from the
> geonames.org <http://geonames.org> domain. The incorrect https
> certificate applies to all of them.
>
> On Saturday, 4 November 2017 19:59:05 UTC+1, Marc Wick wrote:
>
> Hi Marnick
>
> The api services are listed here:
> http://www.geonames.org/export/ws-overview.html
> <http://www.geonames.org/export/ws-overview.html>
> There is no webservice at geonames.org <http://geonames.org>.
>
>
> Best Regards
>
> Marc
>
> Marnick L'Eau wrote:
> > I'm looking for a webservice that can provide country flags
> for a
> > browser addon I've made. geonames seems to be a great choice,
> assuming I
> > automatically have or can ask for permission to integrate
> them. There's
> > just 1 problem: your HTTPS configuration is broken.
> >
> > Your website runs on the domain geonames.org
> <http://geonames.org> and defaults to http.
> > Trying to switch to https displays a browser error because
> your https
> > cert is configured for *.geonames*.net*. Changing the url to
> http(s)
> > geonames.net <http://geonames.net> redirects the request back
> to geonames.org <http://geonames.org>. TLDR: your
> > https cert is for geonames.net <http://geonames.net> and your
> website is set up to force all
> > requests to go geonames.org <http://geonames.org> with http
> only.
> >
> > Could this please be fixed?
> >
> > Cheers
> >
> > --
> > You received this message because you are subscribed to the
> Google
> > Groups "GeoNames" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send
> > an email to geonames+u...@googlegroups.com
> > <mailto:geonames+u...@googlegroups.com>.
> > To post to this group, send email to geon...@googlegroups.com
> > <mailto:geon...@googlegroups.com>.
> > Visit this group at https://groups.google.com/group/geonames
> <https://groups.google.com/group/geonames>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.

Richard Gibson

unread,
Sep 21, 2018, 3:05:16 AM9/21/18
to Marc Wick, geon...@googlegroups.com
I would like to maintain an up-to-date list of countries and their associated codes from at most three hosts, and have confidence that the responses were not altered by any man in the middle. Standard HTTP If-Modified-Since and/or If-None-Match headers can protect your bandwidth.
To unsubscribe from this group and stop receiving emails from it, send an email to geonames+unsubscribe@googlegroups.com <mailto:geonames+unsubscribe@googlegroups.com>.
To post to this group, send email to geon...@googlegroups.com <mailto:geonames@googlegroups.com>.

Marnick L'Eau

unread,
Sep 21, 2018, 3:05:41 AM9/21/18
to GeoNames
Marc, I understand your stance that you dont want geonames to be used as such a service, and I think Richard does too. Neither of us is trying to hotlink the flags. All both of us are saying is that your https cert is misconfigured, which is a bad thing in and of itself that should be corrected. Just go to geonames.org, change the protcol to https (as many people do automatically today with browser settings or addons), and watch the site fail the https security validation.

Barry Hunter

unread,
Sep 21, 2018, 8:27:41 AM9/21/18
to geonames, Marc Wick
Standard HTTP If-Modified-Since and/or If-None-Match headers can protect your bandwidth.

That would predicate that the 'client' even has a client side cache (and/or a an intermediate proxy). If there is no cache, those headers wont help anything. 

... and also that the problem is 'repeat' download. Even a client downloading them once (particular if tries to download all 200+ countries) in quick sucession, uses bandwidth. 
Such headers wont help lots of differnet users downloading. 

Plus from the experience the 304s dont really save all that much bandwidh, for small files, the TCP and HTTP header overhead, make the actual bandwidth consumption of 304s not that much smaller anyway. Typically its the large number of requests that are an issue, not the actual bandwidth consumption anyway. Serving a 304 usually requires a checking the origin file anyway. 

If there was a 'cache' available, a far futures Expiry data would work better away, the flags dont really change and dont need repeated validation. 



Seems to be you moaning about Geonames not providing a service (files served of proper TLS connection), that it doesnt want to provide. 



Try searching for country flags on 

there is some available there. Comes with (free) hosting provided by cloudflare, looks like https enabled too. 
 


 
 Neither of us is trying to hotlink the flags.

So what are you doing then? 

If you weren't trying to download the flags over https, you wouldn't 'care' that the certificate is wrong. 

 
which is a bad thing in and of itself that should be corrected. 

Why? Marc already mentioned its (at least partly) deliberately broken

... to make geonames unattractive to users trying to download files from geonames owned servers. 

 

Marc Wick

unread,
Sep 22, 2018, 10:25:16 AM9/22/18
to Barry Hunter, geonames
Thanks Barry for your patience explaining how things are.

I can think we can close the tread with this as all services and
functions are available over ssl anyhow. If something got forgotten then
whoever spots it may start a new thread please.

Best Regards

Marc
> Why? Marc already mentioned its (at least partly) /deliberately /broken
>
> ... to make geonames /unattractive /to users trying to download files
> from geonames owned servers.
>
Reply all
Reply to author
Forward
0 new messages