Bug 363193 - Decryption failed when trying to import S/MIME certificate backed-up from Firefox
Summary: Decryption failed when trying to import S/MIME certificate backed-up from Fir...
Status: RESOLVED WORKSFORME
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: 2.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-18 00:35 UTC by Stefan
Modified: 2022-11-20 05:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2016-05-18 00:35:34 UTC
When trying to import an S/MIME certificate backed-up from Firefox using a long passphrase, importing the p12 file in Kleopatra fails with the error: Decryption failed.

This is bad in two ways:
a) it should just work (using long passphrases is advertised)
b) the error message doesn't point to the actual problem at all - the user might not at all get the idea that a too long passphrase is the problem

The issue might be related to https://bugs.kde.org/show_bug.cgi?id=362640 but I'm not too sure, especially since this is an entire different use-case and error message.

Reproducible: Always

Steps to Reproduce:
1. Get an S/MIME certificate in Firefox (normal case, when creating a certificate via the webbrowser - for instance via CAcert).
2. In Firefox: Tools -> Options -> Advanced -> View Certificates
3. Select your certificate -> Backup...
4. Enter a filename where to store the p12-file
5. Enter the master password, if required
6. Use the following password to encrypt the p12-file: 0f9guf9dhgsadi90sdg0ßfd0hdgj0df
7. In Kleopatra: File -> Import certificate...
8. Select the p12-file saved earlier
9. Enter the password: 0f9guf9dhgsadi90sdg0ßfd0hdgj0df
10. Enter a random passphrase to protect the imported object - for instance test1234 and confirm it once more

Actual Results:  
Error shows up:
Title: Certificate Import Failed - Kleopatra
An error occurred while trying to import the certificate [filename].p12:
Decryption failed

Expected Results:  
Import of certificate succeeds.

The error doesn't occur, when using a shorter password to create the backup of the certificate from Firefox.
Comment 1 Justin Zobel 2022-10-21 00:17:48 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-05 05:08:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-20 05:12:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!