Implemented KeyGeneration through CGI