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.





Wednesday, 9 October 2013

Create Custom Archetype and Deploy on Remote Artifactory

This post explains creating a maven archetype from already existing Maven project and deploying it on Remote Artifactory

If remote artifactory does not exists, it can be created by using jFrog



1. Creating Archetype

Go to Project Root directory from command prompt and type

mvn archetype:create-from-project

This will create a {project_root}/target/generated-sources/archtype folder.


Share the post