Book Image

Expert Geoserver

By : Ben Mearns
Book Image

Expert Geoserver

By: Ben Mearns

Overview of this book

GeoServer is open source, server-side software written in Java that allows users to share and edit geospatial data. In this book, you'll start by learning how to develop a spatial analysis platform with web processing services. Then you'll see how to develop an algorithm by chaining together geospatial analysis processes, which you can share with anyone in the world. Next you'll delve into a very important technique to improve the speed of your map application—tile caching. Here, you'll understand how tile caching works, how to develop an effective tile cache-supported web service, and how to leverage tile caching in your OpenLayers web application. Further on, you'll explore important tweaks to produce a performant GeoServer-backed web mapping application. Moving on, you'll enable authentication on the frontend and backend to protect sensitive map data, and deliver sensitive data to your end user. Finally, you'll see how to put your web application into production in a secure and user-friendly way. You'll go beyond traditional web hosting to explore the full range of hosting options in the cloud, and maintain a reliable server instance.
Table of Contents (7 chapters)

Secure login from OL

In the previous section, you learned about the GeoServer settings for authentication, such as authentication based on users, groups, roles, filters, and chains. In this section, you'll learn how to securely log in to a configured GeoServer instance with an OpenLayers-based web app. First, you'll learn how to test authentication with the command-line utility curl. Next, we'll make some minor modifications to some OL code that was previously used to make non-HTTPS GeoServer WFST requests. Finally, we'll test the concepts you learned about in this section.

Make sure Apache HTTPD and Tomcat are started, if they haven't already been started. If GeoServer is not available at the Tomcat address localhost:8080/geoserver, then check permissions and run again. Now, we will test our secure login with curl:

curl -v --cacert C:\Apache24\conf\ssl...