Page MenuHome GnuPG

Kleopatra: Force usage in advanced settings for newcertificate if key type is forced
Closed, ResolvedPublic

Description

When the Key Type is not forced we correctly update key usage depending on the subkey selection.

But in case we have

[CertificateCreationWizard][$i]
PGPKeyType=

In the config the usage is not correctly forced. This leads to the situation where the user can uncheck all usage checkboxes for the certficiate except certify, which then results in a general error because the subkey is forced.

I would just also make the usage checkboxes read only when PGPKeyType is forced. For now we don't have a usecase for forced usage differences.

Event Timeline

aheinecke triaged this task as Normal priority.Mar 1 2022, 12:10 PM
aheinecke created this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker changed the task status from Open to Testing.Apr 19 2022, 12:21 PM
ikloecker removed ikloecker as the assignee of this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker added a project: Testing.
ikloecker added a subscriber: ikloecker.

Done. This also fixes the state of the encryption check box in case the OpenPGP key type is forced.

aheinecke claimed this task.