Wednesday, 26 February 2014

JBOSS 7 Proxy settings

To apply proxy settings do the below steps

Go to JBOSS_HOME/standalone/configuration/standalone.xml
After tag </extensions>
Add the following

<system-properties>
<property name="http.proxyHost" value="yourProxyIpAddress"/>
<property name="http.proxyPort" value="yourProxyPort"/>
</system-properties>

Thursday, 20 February 2014

JBOSS 7 with JConsole

JConsole gives basic information about activities happening on server. Below are the steps to start and point jconsole to a remote machine.

To remotely connect to a JBoss machine you will need a local copy of JBoss too. In the bin folder of local JBoss look for jconsole.bat. Open this file a GUI will appear asking to connect to a local JVM or a remote one.

JBOSS 7 HTTPS/SSL configuration

JBOSS by default is not configured to run on HTTPS. For configuring JBOSS to run on https follow below steps:

1. Create Self-Signed Certificate


Do this step only if a valid certificate is not present and a self-signed certificate needs to be used.

Create self-signed certificate from a machine where java is installed. Fire the below command from command prompt:
keytool -genkeypair -alias client -keyalg RSA -keysize 1024 -storetype jks -validity 365 -keypass password -keystore jboss.jck -storepass password -dname "cn=localhost, ou=Verisign, o=MyComp Inc, l=Foster City, st=California, c=US"

This will create jboss.jck keystore file.  Place the file at location /usr/local/cert.



keytool -export -alias client -storetype jks -keystore jboss.jck -storepass password -file jboss.crt



Monday, 4 November 2013

Asymmetric Key Encryption/Decryption using Keytool



Asymmetric Key Encryption/Decryption using Keytool.
This blog explains how to create keystores, certificates and trustore. It also explains how the handshaking is done between to parties who wan to communicate securely using asymmetric key Encryption/Decryption.


Below video explains secured message passing communication using asymmetric key system.





Share the post