(log_obj: Any | None = None)
| 34 | |
| 35 | |
| 36 | def configure_runtime_ca_bundle(log_obj: Any | None = None) -> bool: |
| 37 | log = log_obj or logger |
| 38 | |
| 39 | try: |
| 40 | ssl_context = build_ssl_context_with_certifi(log_obj=log) |
| 41 | return _try_patch_aiohttp_ssl_context(ssl_context, log_obj=log) |
| 42 | except Exception as exc: |
| 43 | log.error("Failed to configure runtime CA bundle for aiohttp: %r", exc) |
| 44 | return False |
| 45 | |
| 46 | |
| 47 | def initialize_runtime_bootstrap(log_obj: Any | None = None) -> bool: |
no test coverage detected