December 23, 2013

Why You Should Implement equals() and hashCode() In Hibernate

It is not directly obvious why you should override and implement equals() and hashCode() in Hibernate. Here are two good documentation for why:

- Hibernate ORM documentation
http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch04.html#persistent-classes-equalshashcode

JBoss Community Wiki
https://community.jboss.org/wiki/EqualsAndHashCode

Essential iptables on RHEL

I good getting starting guide and also very well explained is casting by Red Hat.'

Hardening access to network services with iptables
http://www.redhat.com/resourcelibrary/articles/training-webinars

Hardening Apache Web Server (httpd)

For hardening Apache Web Server, look at

http://benchmarks.cisecurity.org/downloads/browse/index.cfm?category=benchmarks.servers.web.apache

Hardening RHEL 6

For Red Hat Enterprise Linux 6 hardening, look at 

http://benchmarks.cisecurity.org/downloads/show-single/?file=rhel6.120

Packt’s $5 eBook Bonanza is back!

Following on from the success of last year’s festive offer, the publisher will be celebrating the holiday season with an even bigger $5 Bonanza.

From December 19th, customers will be able to get any eBook or Video from Packt for just $5. This sale covers every title in the 1700+ range and customers can grab as many as they like until January 3rd 2014 – more information is available at http://bit.ly/1jdCr2W.

December 21, 2013

Hardening RHEL5

The NSA has been getting a lot of attention in the media lately, but NSA has also published a lot of interesting document. A good example of that is the

Guide to the Secure Configuration of Red Hat Enterprise Linux 5
http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf

December 11, 2013

JBoss Vault in JBoss EAP 6.2.0 uses jceks as Default KeyStore Type

Today I upgraded to JBoss EAP 6.2.0, but ran into some trouble with the keystore I have. I have one for the SSL connector and one for the JBoss Vault.

To be able keep you old JBoss Vault keystore that is stored with the jks format you need to add the KEYSTORE_TYPE vault option.

</extensions>
<vault>
    <vault-option name="KEYSTORE_URL" value="/your/absolute/path/vault/vault.keystore"/>
    <vault-option name="KEYSTORE_PASSWORD" value="MASK-3/VY6BIQ1KQ9LdJmX8m9Vn"/>
    <vault-option name="KEYSTORE_ALIAS" value="vault"/>
    <vault-option name="SALT" value="12345678"/>
    <vault-option name="ITERATION_COUNT" value="45"/>
    <vault-option name="ENC_FILE_DIR" value="/your/absolute/path/vault/"/>
    <vault-option name="KEYSTORE_TYPE" value="jks"/>
</vault>
<management>

Reference