ngageoint / elasticgeo

ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
GNU General Public License v3.0
169 stars 85 forks source link

SSL for ElasticGeo #51

Closed pelangov728 closed 6 years ago

pelangov728 commented 6 years ago

Hi,

I'm trying to incorporate this plugin for our project. However, our project requires an https (not http) connection with a cert and a key. Because of this, the ElasticDataStore constructor is crashing on line 102 since an http connection won't work for us: https://github.com/ngageoint/elasticgeo/blob/master/gt-elasticsearch/src/main/java/mil/nga/giat/data/elasticsearch/ElasticDataStore.java. Is there support for https in ElasticGeo? If so, please let me know how to input my cert, key, and https url.

Thanks.

sjudeng commented 6 years ago

HTTPS support is not currently implemented but we'll look at adding that in the coming weeks.

pelangov728 commented 6 years ago

Thanks for your reply! Please let me know once HTTPS is supported, it would be very useful for us :)

michimau commented 6 years ago

It would be perfect to have an option to accept self signed certificates too.

sjudeng commented 6 years ago

The update to add SSL support is pushed and is included in the 2.12.0-RC1 release candidate. The current implementation just picks up configuration from the environment (see https://github.com/ngageoint/elasticgeo/blob/master/gs-web-elasticsearch/doc/index.rst#configuring-ssl-tls).

@michimau There's also an added reject_unauthorized property that can be set to false when testing with self-signed certs.