def METHOD_NAME(self, ca_certificate: str | None = None) -> None:
    """
    bridgecrew uses both the urllib3 and requests libraries, while checkov uses the requests library.
    :param ca_certificate: an optional CA bundle to be used by both libraries.
    """
    if self.http:
        return
    if ca_certificate:
        os.environ['REQUESTS_CA_BUNDLE'] = ca_certificate
        try:
            parsed_url = urllib3.util.parse_url(os.environ['https_proxy'])
            self.http = urllib3.ProxyManager(os.environ['https_proxy'], cert_reqs='REQUIRED',
                                             ca_certs=ca_certificate,
                                             proxy_headers=urllib3.make_headers(proxy_basic_auth=parsed_url.auth))  # type:ignore[no-untyped-call]
        except KeyError:
            self.http = urllib3.PoolManager(cert_reqs='REQUIRED', ca_certs=ca_certificate)
    else:
        try:
            parsed_url = urllib3.util.parse_url(os.environ['https_proxy'])
            self.http = urllib3.ProxyManager(os.environ['https_proxy'],
                                             proxy_headers=urllib3.make_headers(proxy_basic_auth=parsed_url.auth))  # type:ignore[no-untyped-call]
        except KeyError:
            self.http = urllib3.PoolManager()