In this article we will cover how to use Mongo Db 3.4.3(plus) version with SSL enabled using Helical Insight.
Follow the below steps to use Mango 3.4.3(plus) with SSL
Step1: Go to the Helical Insight tomcat lib location
Location: C:\Helical Insight\apache-tomcat-7\webapps\hi\WEB-INF\lib
Step2: Take the backup of the below jar files from above location
- calcite-mongodb-1.8.2.jar
- mongo-java-driver-2.14.3.jar
Step3: Now Delete those files.
Step4: Copy below updated jar file at location
Location: C:\Helical Insight\apache-tomcat-7\webapps\hi\WEB-INF\lib
Click on link to download Mongo jars for Helical Insight
Step5: Update model.json file which you have created for SSL configuration as shown below :
Step6: In model.json file you can set authentication mechanism type which you want to set.
For Example : MongoCR , ScramSha1 or Plain
Note : Verify AuthMechanism with MongDB for which user, which AuthMechanism , according to that use it in model.json file.
Step7: Save the model.json file.
Step8: Stop the HIApplication service. To stop HIApplication folow below mentioned steps.
For Windows:
- Open the services.msc as administrater
- Find the HIApplication service and select that service
- Click on Stop to stop the HIApplication service.
For Linux:
- open the linux command prompt
- Run ls /etc/init.d command
- Find the HIApplication service present or not
- Switch to super user
- Stop the HIApplication service by running service HIApplication stop command
Step9: Now follow below steps to set truststore path and password
1) Goto “C:\Helical Insight\apache-tomcat-7\bin” and find tomcat7w.exe file and rename it to
HIApplication.exe.
2) Now double click on HIApplication.exe file, it will prompt you one dialog box shown below :
3) Under Java options add following configuration :
-Djavax.net.ssl.trustStore=C:\mongodb\mongostore
-Djavax.net.ssl.trustStorePassword=helical
Note : Please change the trustore filepath and password according to your configuration.
4) Click on the Apply button and then OK button to save the above changes.
Step:10: Open the service.mscwith administrative access and find the HIApplication service , and start the service.
Above steps helps you to access the Mongo DB with SSL.
Now follow below mention link to use Mongo Db with Helical Insight
https://www.helicalinsight.com/database-support/connect-helical-insight-mongodb/