Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you load maps from Geoserver using https?

How would I go about configuring Geoserver to only load from an https address? I have been combing the web and cannot find any solution.

like image 957
SketchyTurtle Avatar asked Dec 25 '22 23:12

SketchyTurtle


2 Answers

If you make use of a proxy, e.g. Nginx. Make sure to set the correct Proxy Url in GeoServer. If not set correctly, GeoServer will advertise with HTTP when asked for it's capabilities. You can check it yourself by opening WMS_MS_Capabilities.dtd in your browser.

https://youserver.com/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd

or

https://youserver.com/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd

like image 40
mipmip Avatar answered Dec 27 '22 14:12

mipmip


I think that this question is not exactly related to geoserver.

You should configure your java application server (tomcat or whatever) to use https. Geoserver will inherit that configuration

If you are using tomcat you can try to follow this instructions. Or as stated in the comments, now geoserver doc also includes how to configure tomcat for ssl.

like image 105
Francisco Puga Avatar answered Dec 27 '22 13:12

Francisco Puga