Wednesday, March 26, 2014

Setting up Tomcat with SSL and client certificate authentication

1. Correctly install all OpenSSL and APR library
2. Modify conf/server.xml

<Service name="Catalina">

.....

    <Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8443" SSLEnabled="true" connectionTimeout="20000" SSLCertificateFile="SSL.cer" SSLCertificateKeyFile="SSL.key" SSLCACertificateFile="CA.cer" SSLCertificateChainFile="CAChain.cer" maxThreads="150" scheme="https" SSLVerifyClient="require" SSLProtocol="TLSv1" SSLCARevocationFile="crl.pem" SSLVerifyDepth="2" />


.....
</Service>


remark:
All certificate file should be in PEM format
SSK.key should have no password
crl.pem should be used to block revoked certificate


Adding SDK repo to SLES11 SP3

 zypper ar -t yum -n SLES11-SDK-SP3-Updates http://smt/repo/\$RCE/SLE11-SDK-SP3-Updates/sle-11-x86_64/ SMT-http_smt:SLES11-SDK-SP3-Updates

 zypper ar -t yum -n SLES11-SDK-SP3-Pool http://smt/repo/\$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/ SMT-http_smt:SLES11-SDK-SP3-Pool

Friday, March 14, 2014

Thursday, March 13, 2014

Wednesday, March 12, 2014

An error occurred while consolidating disks: msg.disklib.CID_MISMATCH.

Today I meet this error when trying to consolidate snapshots.

Finally, I find that I could be easily solve by 1 step.

1. Click go to snapshot from the latest and try consolidate.
2. Repeat going to a earlier snapshot until you get consolidate snapshot success.

Thursday, February 20, 2014

Write NTFS USB Drive on Mac OS X

Nowadays USB is so large that usually format in NTFS only.

But Mac OS X only mount NTFS as readonly.

On the web there are many guide to teach you how to enable read/write NTFS on Mac OS X by modifying /etc/fstab as follow

1. sudo vi /etc/fstab  (it is normal if file is not exist and please create a new file)

2. Add the following line in /etc/fstab and save the file

LABEL=YOURDISKNAME none ntfs rw,auto,nobrowse

3. Open /Volume and you will not able to use your USB in read/write mode

**TRICK, if your mounted drive name is "Untitled", it will not work. Please rename your USB drive to some name in Windows first!