I am trying to import a personal digital certificate to Firefox (under Your certificates) and I am getting this error:
The PKCS #12 operation failed for unknown reasons.
I am using Firefox 72.0.2 on Ubuntu 18.04.3 LTS. I already successfully imported this certificate into Firefox on Windows 10 and exported a backup (.p12).
What I have already tried:
I made sure the password I am using is correct by checking that the output of
openssl pkcs12 -in myCertificate.pfx -nooutwas
MAC verified OK.
I tried importing the certificate both as .p12 and .pfx files and I also tried setting a blank password if that would be the cause of the problem.
I found a very old bug related to this, but I do not have the torbutton extension installed.
I also tried importing the certificate using the terminal like this
pk12util -i cert.pfx -d ~/.mozilla/firefox/randomchars.default
as mentioned in the linked bug report and in another AskUbuntu question.
pk12util: PKCS12 IMPORT SUCCESSFUL as a result, but I cannot see the certificate under "Your certificates" and neither in the output of
certutil -L -d sql:~/.mozilla/firefox/randomchars.default
Does anyone have another suggestion of where I could be going wrong?