How to: |
This section describes how to install and configure the WSO2 Identity Server.
A preconfigured, pre-upgraded version 4.6 of the WSO2 Identity Server (WSO2 IS) is supplied in the OPMC delivery archive. This upgraded version contains patches to allow proper LDAP authentication, and uppercase/lowercase user name submission.
The following root directory is created:
drive:\wso2_is
cd \wso2_is\bin
The server will come up while logging progress on this WSO2 Identity Server console. When completed, you should see the following message:
xacml policy schema loaded successfully
Creating the certificate involves three steps:
Step 1: Creating a New Certificate for WSO2 IS
The first procedure is to create a new certificate for the WSO2 IS with the opmc_hostname in it (not necessarily the same as the wso2_hostname). Perform the following steps:
drive:\wso2_is\repository\resources\security
If the new keystore build fails, then you can always return to the original version.
cd \wso2_is\repository\resources\security
Only if the Java/jdk/bin folder is not in your path, then type:
path=%java_home%\bin;%path%
keytool -genkey -keyalg RSA -alias wso2carbon -keystore wso2carbon.jks -storepass wso2carbon -validity 720 -keysize 2048
You will now be prompted for several pieces of information that you need to provide:
What is your first and last name? [Unknown]: Your server name, e.g. myhost.abc.co
What is the name of your organizational unit?
[Unknown]: MHS
What is the name of your organization?
[Unknown]: MHS
What is the name of your City or Locality?
[Unknown]: Kansas City
What is the name of your State or Province?
[Unknown]: New York
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=myhost.abc.com, OU=MHS, O=MHS, L=Kansas City, ST=New York, C=US correct?
[no]: yes
The first and last name prompt is where you type the host name of the server where WSO2 IS is running (so, do not always use the above values). All of the other parameters can have any values that you prefer.
Enter key password for <wso2carbon> (RETURN if same as keystore password): wso2carbonRe-enter new password: wso2carbon
Enter the values shown in bold. These values will not echo back to the screen.
keytool -export -alias wso2carbon -keystore wso2carbon.jks -storepass wso2carbon -file wso2carbon.pem
Then type:
keytool -import -alias wso2carbon -file wso2carbon.pem -keystore client-truststore.jks -storepass wso2carbon
keytool -delete -noprompt -alias wso2carbon -keystore client-truststore.jks -storepass wso2carbon
Note: The name of the keystore and storepass could vary.
Import the Certificate Into the Host of the Apache Tomcat JVM
…\Java\jdk1.7.0_45\jre\lib\security
keytool -import -alias wso2carbon -file wso2carbon.pem -keystore cacerts -storepass changeit
In the command prompt window, type:
Cd \wso2_is\bin
Then type:
wso2server
Step 2: Validating the New Certificate
Perform the following steps when the WSO2 IS has started:
Use the full server name (not localhost), and log on. For example:
https://myserver.abc.com:9443/carbon
Only one keystore should be listed (wso2carbon.jks), as shown in the following image.
If this information appears correct, then you have finished configuring the WSO2 Identity Server (WSO2 IS).
Step 3: Configuring the RemediationService Client Machine
The server running the RemediationService must have the client certificate for accessing the WSO2 Identity Server (WSO2 IS) over the SSL protocol. Java handles the connection but, by default, assumes it already has the client certificate. If it does not, then it will fail to connect.
Java InstallCert <hostname>:<port>
where:
Correspond to the WSO2 IS.
In our example above, this would be as follows:
java InstallCert rhwapp371a:9443
The certificate is retrieved and you are asked if you want to add it.
The utility has created a file called jssecacerts for you, which now contains the certificate.
To enable OPMC web applications that are deployed to Apache Tomcat to connect to the WSO2 Identity Server, you must update the JNDI properties in the <Tomcat_Home>\conf\context.xml file.
<Environment override="true" type="java.lang.String" value="https://195.160.232.136" name="is.wso2.url"/> <Environment override="true" type="java.lang.String" value="admin" name="is.wso2.username"/> <Environment override="true" type="java.lang.String" value="admin" name="is.wso2.password"/>
In this example, you must substitute the host name or IP address of your WSO2 server for 195.160.232.136. During initial setup, it is recommended to leave the password set to admin.