Keepass in a console

I use the linux console a lot & there are a lot of times I quickly need a password. I also use KeePassX to store all my passwords. I have a sync script setup to securely sync with a private server. To date I have not been able to quickly grab a password from the […]

Read More →

Encrypted MySQL Connections

This week I fought with MySQL trying to get an encrypted connection. Getting the server piece to appear to work was easier than actually getting the connection. Whether the problems didn’t show up until the connection or if the code in myql client app is just broken, I’m not sure, but I did get it […]

Read More →

OpenSSL & Smart Cards

Started playing with (PKI) smart cards with OpenSSL. Nothing is working so far, but thought I would at least keep my starting point, if I come back to it later. If you have any more suggestions, I would be happy to take a look or greatful for a solution. Basically I want to decrypt email […]

Read More →

Using apache as a Reverse Proxy with location http header correction

If you have a front end web server and want to map to a back end application. Apache can do that. One problem that may occur is a back end application passes back a URL based on the private connection. this can be fixed with the Header command: Header edit Location http://backend:8080 https://public.url.com http://www.denraf.be/content/apache-redirect-response-headerhttp://httpd.apache.org/docs/current/mod/mod_headers.htmlhttp://httpd.apache.org/docs/2.2/mod/mod_headers.html#header

Read More →

DHCP Changes Mac Hostname

By default the Hostname on a Mac will be changed by DHCP. Most of the time, I want my hostname to stay the same. So this can be overridden by setting it in: /etc/hostconfig change: HOSTNAME=-AUTOMATIC- to read HOSTNAME=mymac ref: http://hintsforums.macworld.com/showthread.php?t=29712 Set it in the Terminal with sudo scutil –set HostName <putinyourhostname_or_fqdn_here> like in: sudo […]

Read More →

Sun Java on Ubunutu 10

1) add-apt-repository “deb http://archive.canonical.com/ lucid partner” 2) sudo apt-get update 3) sudo apt-get install sun-java6-bin sun-java6-jre sudo apt-get http://archive.canonical.com/ubuntu lucid partner ??? http://www.clickonf5.org/linux/how-install-sun-java-ubuntu-1004-lts/7777

Read More →

make an external luks encrypted disk

/dev/sdb is used as the disk in this example — MAKE SURE TO ADJUST FOR YOUR SYSTEM a good way to do this is:ls -l /dev/disk/by-id/ to clean / randomize the drive:dd if=/dev/urandom bs=100M conv=notrunc of=/dev/sdb fdisk /dev/sdb — create partition 1cryptsetup –verbose –verify-passphrase –cipher aes-cbc-essiv:sha256 luksformat /dev/sdb1cryptsetup luksOpen /dev/sdb1 namemke2fs -j -L “Label” -m […]

Read More →