Skip to main content

Posts

Showing posts from April, 2018

How to import the Public Certificate of one WSO2 product to the trust store of another?

To demonstrate this point, I will use the 2 products WSO2 API Manager 2.1.0 (referred as APIM from here onwards) and WSO2 Enterprise Integrator 6.1.1 (referred as EI from here onwards). When using EI as the Business Process Server during configuration of Workflows in APIM, one step to perform is to import the public certificate of EI to the truststore of APIM [1]. So now let's see how this can be done. Step 1: Go to <EI_HOME>/repository/resources/security/ folder and execute the following keytool command. This command is used to export the public certificate of EI as a certificate file called wso2carbon.cer. Since the default keystore in EI is wso2carbon.jks, we have specified it as the keystore and the default alias is wso2carbon. Provide wso2carbon as the keystore password when prompted as it is the default password. After executing the above command from within the security folder in EI, you will see that a file with the name of wso2carbon.cer is created...

How to switch between different java versions in ubuntu?

Assume you have java-7-oracle and java-8-oracle installed in your machine and now you need to switch between these 2 versions of java. In order to check which version you are currently using in the machine, execute the command below in the terminal. java -version You will see an output similar to the following. Now to switch to java-8-oracle, execute the below command in the terminal. sudo update-alternatives --config java You will see an output like below. It lists down all the java installations in your machine. Enter the selection number in the prompt. In this case, it will be 2 as we need to switch to java-8-oracle.  Now you should export the JAVA_HOME variable with the new version by adding the following to the .bashrc file. You can take the path from the prompt above. export JAVA_HOME=/usr/lib/jvm/java-8-oracle Then you can open a new terminal and type the following command to check whether the java version has changed. java -vers...