5/31/12

Delete stubborn Windows files

Found a nice (Freeware) tool called "Unlocker" for deleting/unlocking some stubborn files that a Windows 2008 machine just couldn't delete with its built-in tools.
It did the job without a hitch!



Scroll down about half way of the following page to get to the downloads section: http://www.emptyloop.com/unlocker/ 

This link goes directly to the portable package that contains both the x86 & the x64 versions of the tool
http://www.brothersoft.com/download-unlocker-portable-431245.html

5/30/12

Re-scanning the SCSI bus on Linux

How to re-scan the SCSI bus on Linux:

echo "- - -" > /sys/class/scsi_host/host0/scan

5/9/12

Importing private keys into a Java keystore using keytool

For ages the keytool application shipped as part of Java could provide all the functionality to generate a private key and certificate sign request from a Java keystore, but the most basic function, importing a preexisting private key and certificate generated externally, remained overlooked.

This is fixed in Java 6, at long last.

The solution is to convert your existing certificate and key into a PKCS12 file, and then use the keytool functionality to merge one keystore with another one. Java 6 can treat a PKCS12 file as a keystore, so putting this together, you get this:

keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore my-keystore.jks -srckeystore cert-and-key.p12 -srcstoretype PKCS12 -srcstorepass cert-and-key-password -alias 1

The alias of 1 is required to choose the certificate in the source PKCS12 file, keytool isn't clever enough to figure out which certificate you want in a store containing one certificate.

At last, it works.

Thanks to Graham Leggett for his post located here:
http://cunning.sharp.fm/2008/06/importing_private_keys_into_a.html

Quick HTTP to HTTPS - Apache2

There are several methods for redirecting your Apache-based website visitors who might type your servers URL using the plain (non-secure) HT...