Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB manager: certificate is not searched for in QGIS Database #39648

Closed
bstroebl opened this issue Oct 27, 2020 · 4 comments
Closed

DB manager: certificate is not searched for in QGIS Database #39648

bstroebl opened this issue Oct 27, 2020 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin Feedback Waiting on the submitter for answers

Comments

@bstroebl
Copy link

Describe the bug

A PostgreSQL-DB connection is configured with SSL-mode = verify full. The certificate has been added in QGIS' Authorities in Database (via Settings - Options - Authentification - Certificate Manager). Loading layers with that connections via the Data Soure Manager is working flawlessly. Opening DB manager and trying to connect opens the Enter credentials dialog stating that the root certificate file "path/root.crt" does not exist. It seems that DB manager does not know about the certificates stored in Authorities in Database.

How to Reproduce

  1. Settings - Options - Authentification - Manage Certificates and add the certificate for the PostgreSQL database into the database.
  2. Configure a PostgreSQL connection with sslmode = verify full.
  3. Test that this connection works.
  4. Go to Database - DB manager
  5. Click on the just configured connection to connect
  6. Enter Credentials Dialog pops up, stating that root certificate file "C:\users\Username\AppData\Roaming/postgresql/root.crt" does not exist Either provide the file or change sslmode to disable server certificate verification. (see screenshot)

QGIS and OS versions

QGIS 3.17.0 master, QGIS code revision cf37cb9 running on Win10 professional.

credentials

@bstroebl bstroebl added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 27, 2020
@gioman gioman added the DB Manager Relating to the DB Manager core plugin label Oct 27, 2020
@Pedro-Murteira
Copy link

@bstroebl Hello, is this still valid on recent versions?

@Pedro-Murteira Pedro-Murteira added the Feedback Waiting on the submitter for answers label Apr 18, 2022
@github-actions
Copy link

github-actions bot commented May 3, 2022

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label May 3, 2022
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as completed Jun 1, 2022
@miceg
Copy link

miceg commented Jul 19, 2024

I'm able to reproduce this issue on QGIS 3.38.0 on macOS and Windows with the "layer properties" dialog.

Copying the CA certificate file to ~/.postgresql/root.crt (or %HOME%/AppData/Roaming/postgresql/root.crt on Windows) seems to work around the issue.

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

4 participants