-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Milestone
Description
Original Reporter: msmolyak
Environment: Not Specified
Version: Not Specified
Migrated From: http://jira.grails.org/browse/GPMONGODB-353
Currently there is no way to configure MongoDB Grails plugin to connect to MongoDB with SSL enabled. MongoDB Java driver supports such connection:
MongoOptions o = new MongoOptions();
o.socketFactory = SSLSocketFactory.getDefault();
Mongo m = new Mongo( "localhost" , o );
The latest version of SpringData project supports setting "ssl" option through MongoOptionsFactoryBean (http://docs.spring.io/spring-data/data-mongo/docs/1.4.0.RC1/api/org/springframework/data/mongodb/core/MongoOptionsFactoryBean.html).
With this version of MongoOptionsFactoryBean, the user of MongoDB plugin should be able to configure SSL using
mongo {
host =
port =
...
options {
ssl = true
}
}