GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Utilities over an SSH tunnel fail `sslmode=verify-full` · Issue #10861 · pgadmin-org/pgadmin4

Utilities over an SSH tunnel fail sslmode=verify-full #10861

New issue
Copy link
New issue
Copy link
Backlog
Backlog
Utilities over an SSH tunnel fail sslmode=verify-full#10861
Copy link

Description

@draoncc
draoncc
opened on Nov 26, 2026
Issue body actions

Please note that security bugs or issues should be reported to [email protected].

Describe the bug

For a server reached through an SSH tunnel, backup, restore, maintenance and import/export pass the tunnel's local address as --host (for example manager.local_bind_host, web/pgadmin/tools/backup/__init__.py:136 and :227 on master). With sslmode=verify-full, libpq checks the server certificate against that address instead of the database host name, so the utility fails. The interactive connection is not affected.

To Reproduce

  1. Add a server with an SSH tunnel and the connection parameter sslmode=verify-full, with a certificate issued for the database host name.
  2. Connect. This works.
  3. Run Backup on a database.
  4. See the error.

Expected behavior

The utility connects, and verifies the certificate against the database host name.

Error message

libpq's certificate host name mismatch error for 127.0.0.1 (exact text depends on libpq version).

Desktop (please complete the following information):

  • OS: any
  • pgAdmin version: master (9.19 dev, 2fa9263)
  • Mode: Desktop and Server
  • Browser (if running in server mode): any
  • Package type: any

Additional context

Raised in #10830 review. Fix: pass the database host name as host and the tunnel's local address as hostaddr (with the local port), so libpq routes through the tunnel but verifies against the host name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.