Menu

#149 HTTPS Does not work on Windows install

v1.9
closed-fixed
nobody
None
5
2021-03-21
2017-11-23
No

Hello
I try today to use Opentopomap with Viking 1.6.2 on Windows 10.
I try your maps.xml file, no map, I try also the xml file located here https://sourceforge.net/p/viking/wikiallura/Maps/#opentopomap no map.
I made the same try with 4uMapsxml file located here https://sourceforge.net/p/viking/wikiallura/Maps/#4umaps and it works fine.
==> For OpenTopoMap, is there a problem ?
Thanks for help
EtienneL

Discussion

  • Guilhem BONNEFILLE

    Strange, it works fine for me: viking 1.6, Ubuntu 16.04.
    Can you retry now, in order to check if it was a temporary issue?

     
  • Etienne Legendre

    First of all, happy new year and thanks for your answer
    I retry today but no way :-(
    In France with both Windows 7 32 bits, Windows 10 32 and/or 64 bits OS, I can have 4UMaps maps and can NOT have OpenTopoMap maps

    If I run QMapSharck software I can have OpentopoMap maps

    If someone using Windows can say if it works or not.

    my XML file is:

    <objects></objects>

    <object class=""> <property name="label">OpenTopoMap</property> <property name="hostname"> <property name="url">https://a.tile.opentopomap.org/%d/%d/%d.png</property> <property name="follow-location">2</property> <property name="copyright">Kartendaten: c OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: c OpenTopoMap</property> <property name="license">CC-BY-SA</property> <property name="license-url">https://creativecommons.org/licenses/by-sa/3.0/</property> <property name="id">205</property> </property></object> <object class=""> <property name="label">4umaps</property> <property name="hostname">tileserver.4umaps.eu</property> <property name="url">/%d/%d/%d.png</property> <property name="copyright"> 4UMaps.eu OpenStreetMap and contributors</property> <property name="license">CC-BY-SA</property> <property name="license-url">http://www.4umaps.eu/terms-of-use-copyright.aspx</property> <property name="id">801</property> </object>

    Thanks
    Regards
    EtienneL

     
    • Guilhem BONNEFILLE

      Humh....

      I suspect the issue is related to the syntax of the URL. In my test, I
      used the syntax splitting the domain in one XML element and the path
      in the second one, like you did with UMaps.

      2018-01-05 17:17 GMT+01:00 Etienne Legendre etiennel@users.sf.net:

      First of all, happy new year and thanks for your answer
      I retry today but no way :-(
      In France with both Windows 7 32 bits, Windows 10 32 and/or 64 bits OS, I
      can have 4UMaps maps and can NOT have OpenTopoMap maps

      If I run QMapSharck software I can have OpentopoMap maps

      If someone using Windows can say if it works or not.

      my XML file is:

      <objects>
      <object class="">
      <property name="label">OpenTopoMap</property>
      <property name="hostname">
      <property name="url">https://a.tile.opentopomap.org/%d/%d/%d.png</property>
      <property name="follow-location">2</property>
      <property name="copyright">Kartendaten: c OpenStreetMap-Mitwirkende, SRTM |
      Kartendarstellung: c OpenTopoMap</property>
      <property name="license">CC-BY-SA</property>
      <property name="license-url">https://creativecommons.org/licenses/by-sa/3.0/</property>
      <property name="id">205</property>
      </property></object>
      <object class="">
      <property name="label">4umaps</property>
      <property name="hostname">tileserver.4umaps.eu</property>
      <property name="url">/%d/%d/%d.png</property>
      <property name="copyright"> 4UMaps.eu OpenStreetMap and
      contributors</property>
      <property name="license">CC-BY-SA</property>
      <property name="license-url">http://www.4umaps.eu/terms-of-use-copyright.aspx</property>
      <property name="id">801</property>
      </object>
      </objects>

      Thanks
      Regards
      EtienneL


      [support-requests:#37] Open TopoMap maps.xml but no map

      Status: open
      Group: v1.6
      Created: Thu Nov 23, 2017 09:52 AM UTC by Etienne Legendre
      Last Updated: Fri Jan 05, 2018 12:40 PM UTC
      Owner: nobody

      Hello
      I try today to use Opentopomap with Viking 1.6.2 on Windows 10.
      I try your maps.xml file, no map, I try also the xml file located here
      https://sourceforge.net/p/viking/wikiallura/Maps/#opentopomap no map.
      I made the same try with 4uMapsxml file located here
      https://sourceforge.net/p/viking/wikiallura/Maps/#4umaps and it works fine.
      ==> For OpenTopoMap, is there a problem ?
      Thanks for help
      EtienneL


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/viking/support-requests/37/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Guilhem BONNEFILLE
      -=- JID: guyou@im.apinc.org MSN: guilhem_bonnefille@hotmail.com
      -=- mailto:guilhem.bonnefille@gmail.com
      -=- http://nathguil.free.fr/

       
  • Etienne Legendre

    Hello

    Here are 3 other tries I'have done

    <objects>
    <object class="">
    <property name="label">OpenTopoMap</property>
    <property name="hostname"></property>
    <property name="url">https://a.tile.opentopomap.org/%d/%d/%d.png</property>
    <property name="follow-location">2</property>
    <property name="copyright">Kartendaten: c OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: c OpenTopoMap</property>
    <property name="license">CC-BY-SA</property>
    <property name="license-url">https://creativecommons.org/licenses/by-sa/3.0/</property>
    <property name="id">205</property>
    </object>
    </objects>

    or

    <object class=""> <property name="label">OpenTopoMap</property> <property name="hostname"></property> <property name="url">https://a.tile.opentopomap.org/%d/%d/%d.png</property> <property name="zoom-min">0</property> <property name="zoom-max">14</property> <property name="id">414</property> <property name="name">OpenTopoMap</property> <property name="copyright">C OpenTopoMap contributors</property> <property name="license">CC-BY-SA</property> <property name="license-url">http://www.openstreetmap.org/copyright</property> <property name="file-extension">.png</property> </object>

    or

    <object class=""> <property name="label">OpenTopoMap</property> <property name="hostname">a.tile.opentopomap.org</property> <property name="url">/%d/%d/%d.png</property> <property name="follow-location">2</property> <property name="copyright">Kartendaten: OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: OpenTopoMap</property> <property name="license">CC-BY-SA</property> <property name="license-url">https://creativecommons.org/licenses/by-sa/3.0/</property> <property name="id">901</property> </object>

    Can you copy/paste your XML file ?
    Thanks
    Bon WeekEnd

    EtienneL

     

    Last edit: Etienne Legendre 2018-01-06
  • Rob Norris

    Rob Norris - 2018-01-06

    There may be problem with conflicting cache storage on the local PC.
    This depends on the Map->Properties->Cache Layout setting [1].

    If using 'Viking' then the cache is stored in a directory structure using the Id value.
    If using 'OSM' then the cache is stored in a directory structure using the name field value - which is not specified in the XML above - so it resorts to using "Unknown" - thus mulitple maps could be using the same storage. [2]

    Every example in the Wiki should be made to have a name field.

    You can leave out completely leave out the hostname if specifying things in the URL.
    There were some issues in the past of hostname vs URL vs https usage, which might only be solved in the latest source code (i.e. not in v1.6.2).[3]

    I would put in a line with <property name="name">OpenTopoMap</property>

    NB If you select the Map Layer on the left and then the 'Maps Download' Tool on the toolbar (or via the Tools menu) and then right click on the map and select "Show Tile Information", this should show what Viking is trying to use for that Map Layer (at that point).

    1. The Viking cache storage layout is the original Viking style, but the OSM style (which is now the default) enables potentially sharing the tile cache with other programs as it is in a more standard directory/filename format.
    2. Probably should make Viking use a fallback of the label if name is missing.
    3. Some recent problems with Viking were that it auto prepends 'ftp://' or 'http://' to hostname field value (if it didn't have a '://') but then it didn't follow redirect values, so as websites move more to https, it wouldn't download via https.

    HTH.

     
  • Etienne Legendre

    Thanks for help
    I recheck all that, add a line with <property name="name">OpenTopoMap</property> and try to use OSM or Viking cache, but, noway, there is no map on my screen.

    If you have your XML file, you can copy/ paste it here
    Thanks for all
    EtienneL

     
  • Rob Norris

    Rob Norris - 2018-01-08

    My config snippet that works with v1.6.2 (I've got loads of other maps too) and the OSM cache layout.

      <object class="VikSlippyMapSource">
        <property name="label">OpenTopoMap</property>
        <property name="name">OpenTopoMap</property>
        <property name="hostname">a.tile.opentopomap.org/</property>
        <property name="url">%d/%d/%d.png</property>
        <property name="follow-location">2</property>
      </object>
    

    In 1.6.2 the URI must be split into hostname and 'URL' components otherwise either the '%d' substitution doesn't occur properly or Viking prepends another http:// at beginning or (null) can get prepended or appended :(

    The default (since using --libcurl-- to perform downloads) is to not follow redirects.
    But lots of websites now redirect plain http addresses to https.
    As you can't put in 'https' at the moment due to the above (but fixed in the latest code), you must specify the maximum number of redirects to perform which in Viking config speak is the follow-location value.
    Normally 2 will suffice but often I tend to use 5.

    Note that I think some of the configs mentioned in the General Discussion forum about using OpenTopoMaps won't work with v1.6.2 - they'll only work with latest code.

    Good luck!

     

    Last edit: Rob Norris 2018-01-08
  • Etienne Legendre

    Thanks
    I dont understand why, but for me (Windows 10 32 or 64 bit) it does not work.
    I'll use 4Umaps anyway !

    regards

    EtienneL
    Location France Windows 10 32 or 64 bit (3 differents PC) Viking 1.6.2

     
  • Rob Norris

    Rob Norris - 2018-01-09

    Oh dear - I think the libcurl included with the Windows builds of Viking doesn't support HTTPS.

    ATM I can't suggest a workaround.
    I've tried dropping in place a couple of different libcurl.dll versions (that I could get hold of) but they aren't compatible with the other DLLs supplied with Viking.

     
  • Rob Norris

    Rob Norris - 2018-04-29

    Ticket moved from /p/viking/support-requests/37/

     
  • Rob Norris

    Rob Norris - 2018-04-29
    • summary: Open TopoMap maps.xml but no map --> HTTPS Does not work on Windows install
    • Group: v1.6 --> v1.7
     
  • Rob Norris

    Rob Norris - 2018-04-29

    Appears there are two parts to this:
    1. Incomplete install of NSS libraries used by Curl libraries. Annoyingly the NSS library attempts to load other libraries dynamically only on demand (rather than normal library dependency resolving on program initialisation - hence this was missed), thus the NSS initialiation fails (and it not obvious why!)
    2. The actual SSL authentication still fails. Seemingly incompatibility between the Curl and NSS libraries over locations and/or types of certificate stores. I have not been able to resolve this for the Windows installation. However at least Curl can be instructed to turn off SSL verification, which is probably OK for data downloads (Tiles/DEMs etc...) where a MITM attack is unlikely to be of significant concern...

     

    Last edit: Rob Norris 2018-04-29
  • Etienne Legendre

    Thanks for update.
    Do you think a new Windows version of Viking will be published including a fix for this HTTPS problem (an perhaps others I hope)
    Because the HTTPS problem will be soon with all the web/tiles sites.
    4Umap is Ok today, but tomorrow ?
    Rgds.

     

    Last edit: Etienne Legendre 2018-05-19
  • Rob Norris

    Rob Norris - 2018-05-28

    ATM I only plan to release a new version when Viking 1.7 is ready - which is getting quite close now as I've only got to merge 3 completed features and give them a bit more testing.

    However for the time being here is my latest Windows build (ATM it will claim to be 1.6.1 so you may need to uninstall you current version first) which you can try out:

    https://www.dropbox.com/sh/73e2d3c43tarerp/AACytX1BnPZubDgnxF9kPyXDa?dl=0

     
  • Etienne Legendre

    Thanks, I 'm currently out of office, but I will test this week.
    Obviously, I can test the beta of next version 1.7 on Windows 10 (32 and 64bit)and Windows 7 in France if you need help.

     
  • Etienne Legendre

    Hi, today I tried the version posted on DropBox.
    Mapnik works, bing aerial also, waymarked olso, but 4UMaps and OpenTopo maps do NOT work "fail to download tile"
    I did not use an XML file as both UMaps and OpenTopo are available as a choose for the map
    Config French Windows 10 1803 64bit on a recent PC
    Rgds
    EtienneL

     

    Last edit: Etienne Legendre 2018-05-29
  • Rob Norris

    Rob Norris - 2018-05-29

    I'm fairly certain you'll need to update the XML configuration in the maps.xml.
    Note the 4umaps no longer seems to be an .eu address, only a .com one.

    These worked for me in the Windows emulated environment:

    <objects>
    <objects>
    <object class="">
    <property name="name">OpenTopoMap</property>
    <property name="label">OpenTopoMap</property>
    <property name="url">https://a.tile.opentopomap.org/%d/%d/%d.png</property>
    <property name="follow-location">3</property>
    <property name="id">205</property>
    </object>
    </objects></objects>

    <object class=""> <property name="name">4umaps</property> <property name="label">4umaps</property> <property name="url">https://tileserver.4umaps.com/%d/%d/%d.png</property> <property name="copyright">© 4UMaps.com © OpenStreetMap and contributors</property> <property name="license">CC-BY-SA</property> <property name="license-url">http://www.4umaps.com/terms-of-use-copyright.aspx</property> <property name="id">801</property> </object>

     
  • Etienne Legendre

    no luck ! With this XLM file it does not work. The 4UMaps CML seem to have another problem also as with it, I dont seen the second choice of 4Umaps

    I used this one for tests purpose (no copyright...)
    <objects></objects>

    <object class=""> <property name="name">4umaps</property> <property name="label">4umaps2</property> <property name="url">https://tileserver.4umaps.com/%d/%d/%d.png </property> <property name="id">801</property> </object>


    But no map...

    UPDATE it seems 4UMaps does not work for previous installations also. No map on my "old" PC

     

    Last edit: Etienne Legendre 2018-05-30
  • Rob Norris

    Rob Norris - 2020-12-05
    • status: open --> pending-fixed
    • Group: v1.7 --> v1.9
     
  • Rob Norris

    Rob Norris - 2020-12-05

    Updated Windows build method now incorporates newer system components and HTTPS works.
    This will be included in the next release.

     
  • Rob Norris

    Rob Norris - 2020-12-08

    NB If using Viking 1.7 or 1.8 you can workaround the problem this by editing your viking.ini settings file (when Viking is not running, otherwise Viking will overwrite your manual changes) to tell Curl to not verify https connections.

    Which I think on Windows is:

    C:\Users\<username>\.viking\viking.ini
    

    Using a normal text editor, add this setting:

    curl_ssl_verifypeer=0
    
     
  • Rob Norris

    Rob Norris - 2021-03-21
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.