Thursday, 1 November 2012

Saturday, 20 October 2012

Remove Passkey from a Private Key

openssl rsa -in private_key_with_pass.key -out private_key_without_pass.key

Saturday, 1 September 2012

Convert Apache SSL Private Key to IIS Private Key

To convert private key being used with Apache (usually .key) to IIS private key (.pfx) use the following command:

openssl pkcs12 -export -out private.pfx -inkey private.key -in public.crt

You'll be asked for the password to unlock current private.key (in case it's password protected) and another password to be assigned to the new private.pfx file.

Saturday, 25 August 2012

Don't Reverse Proxy a Subdirectory

Assume you have a reversed web server via apache mod_proxy, there might be subdirectories which you don't want to reverse (such as internal Web Services), you can use ! directive like this:

--------------------------------------------------

<VirtualHost *:80>
    ServerName www.example.com
    ProxyPass /webservice !
    ProxyPass / http://10.1.1.100/
    ProxyPassReverse / http://10.1.1.100/
</VirtualHost>
--------------------------------------------------

It's important to have ! directive before the actual ProxyPass direct.