Improvements to the key generation mechanism.

now we use a valid https url, and we have pre-created the resources directory, so the script creates the key properly
Merge pull request #2 from hibikir/master

Improvements to the key generation mechanism.