public function setHost($host=NULL, $port=NULL, $is_https=NULL) {
		if(!isset($host)) {
			$host = $this->api_host;
		}

		if(!isset($port)) {
			$port = $this->api_port;
		}

		if($this->loadTrustlyPublicKey($host, $port) === FALSE) {
			$error = openssl_error_string();
			throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".(isset($error)?", error $error":''));
		}

		if(isset($is_https)) {
			$this->api_is_https = $is_https;
		}
	}