Kleopatra: New CSR initially ignores email requirement
Testing, NormalPublic

Assigned To
Authored By
timegrid
Wed, Aug 19, 12:32 PM

Description

On CSR creation in both gpg4win-5.1.0 @ win11 and vsd-3.4.0-beta1326 @ win10, the email field requirement does not work initially: if a name is provided and the email field was not focused yet, the CSR can be created without email:

Result: No "Subject Alternative Name":

Certificate Request:
    Data:
        Version: 1 (0x0)
        Subject: CN=name only
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (3072 bit)
                Modulus:
                    [...]
                Exponent: 65537 (0x10001)
        Attributes:
            Requested Extensions:
                X509v3 Key Usage: critical
                    Digital Signature, Non Repudiation, Key Encipherment, Data Encipherment
    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        [...]

Note: If the email field had focus once, it works as intended:


Split from T6117: Kleopatra: Make creation of S/MIME certificate signing request accessible

Details

Version
gpg4win-5.1.0 @ win11 / vsd-3.4.0-beta1326 @ win10

Event Timeline

ebo triaged this task as Normal priority.Wed, Aug 19, 12:49 PM

This is intended behavior. The idea is that it's better for accessibility that the OK button is always enabled. If something is missing the user gets detailed feedback what's missing. If the OK button was disabled then the user would have to go hunting for the missing required information.

If something is missing the user gets detailed feedback what's missing

The issue is, that CSRs without email can be created and no feedback is given, so I'm reopening.

ikloecker changed the task status from Open to Testing.Thu, Aug 20, 4:15 PM
ikloecker claimed this task.
ikloecker moved this task from Backlog to WIP on the gpd5x board.

Fixed

...and backported for VSD 3.4

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Aug 24, 9:33 AM

Looks good to me on vsd-3.4.0-beta1344 @ win10.

timegrid edited projects, added vsd34 (vsd-3.4.0); removed vsd34.
timegrid moved this task from vsd-3.4.0 to Done on the vsd34 board.
timegrid edited projects, added vsd34; removed vsd34 (vsd-3.4.0).