MCPcopy
hub / github.com/httpie/cli / _process_ssl_cert

Method _process_ssl_cert

httpie/cli/argparser.py:269–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 self.env.apply_warnings_filter()
268
269 def _process_ssl_cert(self):
270 from httpie.ssl_ import _is_key_file_encrypted
271
272 if self.args.cert_key_pass is None:
273 self.args.cert_key_pass = SSLCredentials(None)
274
275 if (
276 self.args.cert_key is not None
277 and self.args.cert_key_pass.value is None
278 and _is_key_file_encrypted(self.args.cert_key)
279 ):
280 self.args.cert_key_pass.prompt_password(self.args.cert_key)
281
282 def _process_auth(self):
283 # TODO: refactor & simplify this method.

Callers 1

parse_argsMethod · 0.95

Calls 3

_is_key_file_encryptedFunction · 0.90
SSLCredentialsClass · 0.85
prompt_passwordMethod · 0.45

Tested by

no test coverage detected