Page MenuHome GnuPG

Kleopatra: Show "is this your own key" question for Smartcards somehow, too
Testing, NormalPublic

Description

When importing a secret key from a file Kleopatra shows this dialog:


(importcertificatescomannd.cpp handleHownerTrust)

The problem is that if you use our nice "plug and play" mechanism where we read key stubs automatically from a smartcard and pull the public key from ldap this does not show up. And the user then has to manually set the ownertrust when he wants to use certify.

As we dont necessarily have the attention of the user when a smartcard is inserted and the auto import is done I dont this a dialog at this place would be the proper solution.

A better Idea I think is that when we do "certify" and the key selected for the certification does not have ownertrust, we show a message with a similar question and some "do not ask again" checkbox.

I can't really see a usecase where you would want to do a certification with a key that has no ownertrust so we should assist the user in avoiding this.

Event Timeline

aheinecke triaged this task as Normal priority.Jun 28 2021, 11:35 AM
aheinecke created this task.
ikloecker changed the task status from Open to Testing.Wed, Jun 30, 6:54 PM
ikloecker reassigned this task from ikloecker to aheinecke.
ikloecker added a subscriber: ikloecker.

When selecting a certification key without ultimate trust the message "Is this your own key?" is shown.

After clicking "Set owner trust" the message changes to success message (if setting owner trust succeeded).

After a few seconds the status of the certification key updates and the message vanishes.

ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Wed, Jun 30, 6:54 PM

Very cool, I like it especially that you avoided a popup and used that action mechanism.