<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>339087</bug_id>
          
          <creation_ts>2014-09-15 00:33:29 +0000</creation_ts>
          <short_desc>you cannot encrypt to an expired OpenPGP certificate</short_desc>
          <delta_ts>2017-01-18 18:56:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmail2</product>
          <component>crypto</component>
          <version>5.1.3</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Hauke Laging">hauke</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>kdenis</cc>
    
    <cc>kolAflash</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>4</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1471229</commentid>
    <comment_count>0</comment_count>
    <who name="Hauke Laging">hauke</who>
    <bug_when>2014-09-15 00:33:29 +0000</bug_when>
    <thetext>KMail does not allow to encrypt to expired certificates. It is OK to warn about that (and would be a failure not to do so) but not allowing to encrypt to this key is a severe security failure because it does not make any sense and forces the user to use a different key (if available, usually not) or to send the mail unencrypted.

This is similar to the old (meanwhile solved) problem that you could not encrypt to non-valid keys. Of course, encrypting to a non-valid (i.e. never has been valid) key is much more severe that encrypting to an expired one which a purely formal problem not a technical one.

Reproducible: Always

Steps to Reproduce:
1. Let a certificate expire.
2. Try to send a mail encrypted to this certificate.


Actual Results:  
Email cannot be sent.

Expected Results:  
Warning which can be overridden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1471381</commentid>
    <comment_count>1</comment_count>
    <who name="Hauke Laging">hauke</who>
    <bug_when>2014-09-16 00:03:20 +0000</bug_when>
    <thetext>I have to &quot;suspend&quot; this bug report as it turned out that this is a problem of the underlying GnuPG (at least gpg) which currently does not allow this. Maybe this will be changed in future versions.

But I don&apos;t know whether this problem affects gpgme, though.

http://lists.gnupg.org/pipermail/gnupg-users/2014-September/050850.html

There is no concensus in the community what is the right behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1627446</commentid>
    <comment_count>2</comment_count>
    <who name="kolAflash">kolAflash</who>
    <bug_when>2016-09-25 22:10:24 +0000</bug_when>
    <thetext>Still valid for KMail 5.1.3 (KDE Frameworks 5.21.0 on openSUSE 42.1)

Related: https://bugs.kde.org/show_bug.cgi?id=369358</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1627455</commentid>
    <comment_count>3</comment_count>
    <who name="kolAflash">kolAflash</who>
    <bug_when>2016-09-25 22:41:22 +0000</bug_when>
    <thetext>Another attempt to get this fixed.
https://bugs.gnupg.org/gnupg/issue2703</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1655238</commentid>
    <comment_count>4</comment_count>
    <who name="Denis Kurz">kdenis</who>
    <bug_when>2017-01-18 18:56:57 +0000</bug_when>
    <thetext>You already came to the conclusion that this is a limitation of the underlying gnupg, so I close this bug as UPSTREAM.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>