Skip to content

Instantly share code, notes, and snippets.

@luis-fss
Last active January 15, 2022 15:07
Show Gist options
  • Save luis-fss/056975d00063510ea69b955bf02e1125 to your computer and use it in GitHub Desktop.
Save luis-fss/056975d00063510ea69b955bf02e1125 to your computer and use it in GitHub Desktop.
Digital certificate import errors in Chrome and Firefox on Linux.

I wasn't able to install FILENAME.pfx under Ubuntu on Chrome or Firefox altough I had no problems installing the very same file on IE under Windows. What I did to solve the issue:

openssl pkcs12 -in FILENAME.pfx -clcerts -nokeys -out FILENAMEcert.pem
openssl pkcs12 -in FILENAME.pfx -nocerts -out FILENAMEkey.pem
openssl pkcs12 -export -in FILENAMEcert.pem -inkey FILENAMEkey.pem -out FILENAME.p12

Then install FILENAME.p12 on Chrome or Firefox under Ubuntu should work like a charm :)

source question and answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment