Let's say I'm developing a script for login.example.com. I have absolutely no access to login.example.com, but that page loads a script on assets.example.com (which I have access to). To test how well my new script works on the production login page, I changed my /etc/hosts to point assets.example.com to my localhost (and set up Apache accordingly).
The only problem now is that the login page loads https://assets.example.com/script.js (Again, I have no influence on this!). So in order for me to test my script, I need to set up a self-signed SSL cert.
I followed the directions here: https://help.ubuntu.com/11.10/serverguide/C/certificates-and-security.html
I also tried using the default-ssl to test it to no avail. I simply constantly get SSL connection error:
// Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. (Chrome)
Update: Since we're now at 12.04 LTS && 12.10, the tutorial should address these versions.