Made the key and the cert optional for the secureClient.