Creates a self-signed certificate and returns certificate hash as out parameter. It adds TS_GATEWAY_SELF_SIGNED_CERTIFICATE ...