<?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>333079</bug_id>
          
          <creation_ts>2014-04-04 16:50:31 +0000</creation_ts>
          <short_desc>kcmshell4 kcm_ssl fails to list files other than *.der and fails to import der certificates</short_desc>
          <delta_ts>2021-03-10 00:15:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>kssl</component>
          <version>4.12.97</version>
          <rep_platform>Kubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Florian Reinhard">florian.reinhard</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>adawit</cc>
    
    <cc>bugsnmd</cc>
    
    <cc>guido-kdebugs</cc>
    
    <cc>registrace</cc>
    
    <cc>simonandric5</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1439748</commentid>
    <comment_count>0</comment_count>
    <who name="Florian Reinhard">florian.reinhard</who>
    <bug_when>2014-04-04 16:50:31 +0000</bug_when>
    <thetext>kcmshell4 file_types lists *.cert, *.crt, *.der, *.pem as valid file types. 

Reproducible: Always

Steps to Reproduce:
1. wget http://www.cacert.org/certs/root.crt
2. wget http://www.cacert.org/certs/root.der
3. kcmshell4 kcm_ssl
4. Click the &quot;Add&quot; button on the lower right corner.
5. choose root.der
Actual Results:  
1. root.der will not be imported. it fails silently, there&apos;s just a kDebug output in CaCertificatesPage::addCertificateClicked
2. root.crt will not be displayed in the KFileDialog. if you empty the &quot;Filter&quot; you&apos;ll be able to select it and sucessfully import it.

Expected Results:  
1. import root.der or display a message what&apos;s wrong, never ever fail silently!
2. display .pem, .crt, .cert files in the file dialog</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480038</commentid>
    <comment_count>1</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2014-11-07 03:15:12 +0000</bug_when>
    <thetext>The only valid things from this bug report today are:

1. There is no message shown when importing fails.
2. *.der files are not imported at all.

The second one seems to be a bug in QSslCertificate::fromPath. I have a patch that changes that to use QSslCertificate::fromDevice instead and that seems to work fine. The first issue is something that should be fixed, but due to message freezes, cannot be fixed in the current 4.x branch. Perhaps it can be resolved in the KDE frameworks branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1481520</commentid>
    <comment_count>2</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2014-11-17 05:32:32 +0000</bug_when>
    <thetext>Git commit 0d9d4ddd35e44ee811b43d93bb8e0968008ffa76 by Dawit Alemayehu.
Committed on 09/11/2014 at 06:13.
Pushed by adawit into branch &apos;KDE/4.14&apos;.

Use QSslCertificate&apos;s fromDevice instead fromPath to import certificates.

QSslCertificate::fromPath seems to have problem importing certs in DER format.
REVIEW: 121092

M  +7    -3    kio/kssl/kcm/cacertificatespage.cpp

http://commits.kde.org/kdelibs/0d9d4ddd35e44ee811b43d93bb8e0968008ffa76</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1481523</commentid>
    <comment_count>3</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2014-11-17 06:07:12 +0000</bug_when>
    <thetext>*** Bug 210356 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1484458</commentid>
    <comment_count>4</comment_count>
    <who name="NMD">bugsnmd</who>
    <bug_when>2014-12-07 17:04:08 +0000</bug_when>
    <thetext>great, thanks for fixing that Dawit - look forwards to seeing the functionality make its way through.
Cheers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013566</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2021-03-10 00:15:37 +0000</bug_when>
    <thetext>Thank you for the bug report.

As this report hasn&apos;t seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>