Aug 6 2012
Free Windows Vista & Windows 7 for Testing on Mac/Linux
If you want to test exploits against windows machines or if you’re a web developer and need to test code in IE 7, 8, and 9 you will want to have multiple windows virtual machines handy. This tutorial will show you how to legally get copies of windows installed on virtualbox using the free editions provided by Microsoft. These additions are not fully registered and you will need to restore the images after every 30 days so they aren’t useful for desktop machines but they are perfect for testing purposes.
This will produce the following virtual machines:
We will be using a script to automate the build process courtesy of Greg Thornton and it is available via github at https://raw.github.com/xdissent/ievms/master/ievms.sh. The admin password for all of the IE VMs is “Password1″ without the quotes. This has been tested and confirmed to work with Mac OS X 10.7 Lion and Mac OS X 10.6 Snow Leopard.
Instructions
Step 1: Download and install VirtualBox
Step 2: Launch the Terminal (located in /Applications/Utilities/)
Step 3: Run the installation script, this will take some time to download and install
1 | curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="7 8 9" bash |
Step 4: Launch VirtualBox and boot one of the virtual machine
Recovering from a failed installation
Each version is installed into a subdirectory of “~/.ievms/vhd/“. If the installation fails for any reason (corrupted download, for instance), delete the version-specific subdirectory and rerun the install. If nothing else, you can delete “~/.ievms“ and rerun the install.







Apr 15 2014
Creating Self Signed Certificates
Have you ever created a self-signed certificate and then seen the following errors in the apache error log?
Well this is likely because you are using a certificate that is used to sign other certificates as your SSL cert rather than using a cert that is just for SSL. The remainder of this document will walk you through the correct steps to generating a self-signed certificate. This guidance is based on the instructions provided by Heroku.
The openssl library is required to generate your own certificate. Run the following command in your local environment to see if you already have openssl installed installed.
2
/usr/bin/openssl
If you have openssl installed, the first step is to generate a private key and certificate signing request.
2
3
4
5
6
7
8
9
10
$ sudo openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
// Removes password from RSA private key
$ sudo openssl rsa -passin pass:x -in server.pass.key -out server.key
// Remove the original private key
$ sudo rm server.pass.key
// Certificate Signing Request
$ sudo openssl req -subj /C=US/ST=Virginia/L=Alexandria/O=IT/CN=www.openfisma.org -new -key server.key -out server.csr
// Self-signed certificate generated from server.key private key and server.csr
$ sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
By James Ford • Apache, SSL, System Administration 0