Key generation (PEM file) added
Protocol modified to match WebServices changes