Added -w option (Certificate password) and fixed the -c option