"Failed to restore the PKCS #12 file for unknown reason" is bad error message

NEW
Unassigned

Status

()

P5
normal
10 years ago
a year ago

People

(Reporter: mozdiav, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [psm-backlog])

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20081001 Minefield/3.1b1pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20081001 Minefield/3.1b1pre

trying to import personal certificate in pkcs12 format, got "Failed to restore the PKCS #12 file for unknown reason" message.
This error occurs only on one of my computer. This file successful imports on 2 other computers with firefoxes.

This error message is not informative and not helps to find and resolve problem. More informative error messages required.

Reproducible: Didn't try
Assignee: nobody → kaie
Component: Security → Security: PSM
Product: Firefox → Core
QA Contact: firefox → psm
Mass change owner of unconfirmed "Core:Security UI/PSM/SMime" bugs to nobody.
Search for kaie-20100607-unconfirmed-nobody
Assignee: kaie → nobody
May be related to bug 515663.
See Also: → bug 515663
My previous comment was regarding 458161, which is related to this.
See Also: → bug 458161

Comment 4

5 years ago
I get the same error message when entering a wrong password while trying to import a password protected private key from a .p12-file. This message is not helpful and should instead include something like "wrong password".

When supplying a wrong password while trying to import a .p12-File with Windows' Certificate Import Wizard, it says that the password is incorrect. Thus it seems to be possible to recognize a wrong password.

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0

This is a german Firefox version. The message "Failed to restore the PKCS #12 file for unknown reason" translates to "Die PKCS#12-Operation ist aus unbekannten Gründen fehlgeschlagen." in german Firefox.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [psm-backlog]

Comment 5

2 years ago
This general error message is displayed also when you are trying to import user Certificate and another (Server) certificate has assigned same serial number by the same CA.

Reproduction:
Visit site with self signed certificate
Add exception for this certificate
Open Certificate Manager in preferences
Try to import User certificate(.pfx) signed by the same CA as previous server certificate and the same serial number
Error message 'The PKCS #12 operation failed for unknown reasons' is displayed

Expected behavior:
Show more descriptive message about encountered error while importing PKCS #12 user certificate

Tested on:
Mozilla Firefix 52.0.2 (64-bit), Ubuntu 16.04.2 LTS (Xenial Xerus)
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.