Note. To make this example work, I had to given EVERYONE full permission to
C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys 
directory. Not recommended in general.