Skip to content

going through a proxy and disabling host verification is not effective #316

@joseluu

Description

@joseluu

Bug description

Disabling host verification on an https connection fails

Context:

Proxies doing packet inspection do their own ssl handshake with the target host and with the user machine. As a consequence, the user machine sees the proxy certificate rather than the target host certificate. For this reason it is convenient to disable the host verification on the user machine.

how to reproduce

prerequisite: use https connection going through a proxy doing packet inspection

   service = QiskitRuntimeService(
        channel='ibm_quantum_platform',
        token=token,
        proxies=proxies,
        verify=False,  # Set to False if you have certificate issues
        instance='Instance_2026'
    )

Expected behavior

Connection happens without error

environment of execution

  • SDK Version 0.73.2
  • Python Version 3.11
  • Name of service used: QiskitRuntimeService

related issue
Qiskit/qiskit-ibm-runtime#2592

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions