EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB442016: How to Use Web SDK to connect to an I-Server that is Configured for SSL MicroStrategy 10.4


Community Admin

• Strategy


How to Use Web SDK to connect to an I-Server that is Configured for SSL

Prerequisites:

  • Create self-signed certs and a jks file
  • Set up the relationship between the I-server and the webserver using this in command prompt:  keytool -import -file rootCA.crt -alias rootCA -keystore myTrustStore (See step 3 here): https://community.strategy.com/article/KB325485-How-to-configure-TLS-SSL-between-the-MicroStrategy-Web

Code Snippet
 


EncryptionModeConfigurationSSL config = (EncryptionModeConfigurationSSL) EncryptionMode.SSL.getConfiguration();
            String keyStoreLocation = ".jks file path location";
            
            config.setTruststore(keyStoreLocation, "password".toCharArray());            
            IDSSXMLAdmin admin = DSSXMLClassFactory.getAdminInstance();
            admin.setEncryptionMode(EncryptionMode.SSL);
            admin.Connect("serverName", ssl port, initial poolsize, maximum poolsize);

To make sure this is working as expected and a session is getting created, add a try/catch statement.
  KB442016


Comment

0 comments

Details

Knowledge Article

Published:

September 28, 2018

Last Updated:

January 3, 2019