Fix to self signed certificate key size and raised required java version to 1.7.