diff --git a/util/secscan/api.py b/util/secscan/api.py index d6ae31502..344865e9c 100644 --- a/util/secscan/api.py +++ b/util/secscan/api.py @@ -42,9 +42,6 @@ class SecurityScannerAPI(object): self._security_config = config.get('SECURITY_SCANNER') self._target_version = self._security_config['ENGINE_VERSION_TARGET'] - self._certificate = config_validator.cert() - self._keys = config_validator.keypair() - def _get_image_url(self, image): """ Gets the download URL for an image and if the storage doesn't exist, @@ -259,7 +256,7 @@ class SecurityScannerAPI(object): with CloseForLongOperation(self.config): logger.debug('%sing security URL %s', method.upper(), url) return client.request(method, url, json=body, params=params, timeout=timeout, - cert=self._keys, verify='/conf/mitm.cert', headers=headers, + verify='/conf/mitm.cert', headers=headers, proxies={ 'https': 'https://' + signer_proxy_url, 'http': 'http://' + signer_proxy_url