Problem with pfx import

Questions about Wine on Linux
Post Reply
geka22
Newbie
Newbie
Posts: 2
Joined: Thu Sep 03, 2020 7:50 pm

Problem with pfx import

Post by geka22 » Thu Sep 03, 2020 8:07 pm

Good day.
I have Debian 9 and Wine 5.0.2 (also tried 5.16)
I run "wine control" to add new certificate from pfx-file (in attachment, it's not secret, password is 1)
But when i try to add pfx from certificate import wizard i receive message, that file format is not supported (i do not know exact english error, because i receive it in russian). I tried to make pfx by openssl 1.0.1, also by microsoft windows built-in export-to- -pfx wizard. Also I tried making pfx by windows CA and by Openssl, but still no luck.
What am i doing wrong? All that i know is that from wine 5.0 (as in release notes) importing of pfx blobs is supported.
certificate.zip
(1.82 KiB) Downloaded 11 times

geka22
Newbie
Newbie
Posts: 2
Joined: Thu Sep 03, 2020 7:50 pm

Re: Problem with pfx import

Post by geka22 » Fri Sep 04, 2020 7:14 pm

Also tried importpfx.exe -f certificate.p12 - p "1" -t USER -s MY . (With MACHINE parameter also)

The output says that import suceeded. But i did not see any certificates in wine control

matiaswb
Newbie
Newbie
Posts: 1
Joined: Wed Oct 07, 2020 12:44 pm

Re: Problem with pfx import

Post by matiaswb » Wed Oct 07, 2020 12:51 pm

I think there is a problem when importing certificates with password.

If it helps, you can try remove the password from the certificate.

openssl pkcs12 -in file.pfx -out file.pem -nodes
or
openssl pkcs12 -in file.pfx -out file.pem

I have a .net cli executable that needs to read the password from the windows keystore. No progress here, i didn't found how to make this work.

Post Reply