[Bug 45746] New: import pfx fails
https://bugs.winehq.org/show_bug.cgi?id=45746 Bug ID: 45746 Summary: import pfx fails Product: Wine Version: 3.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs(a)winehq.org Reporter: virexmail(a)gmail.com Distribution: --- crypt32 installed with a winetricks, but pfx files cannot be imported in certification center, and programs cannot import certificates from pfx files. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de --- Comment #1 from Fabian Maurer <dark.shadow4(a)web.de> --- Mind giving a program and a certificate file to reproduce the issue? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #2 from virex <virexmail(a)gmail.com> --- start wine control - select internet option - content - certificates - import - select any pfx certificate - file did not recognized -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #3 from virex <virexmail(a)gmail.com> --- Created attachment 62212 --> https://bugs.winehq.org/attachment.cgi?id=62212 photo of error -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #4 from virex <virexmail(a)gmail.com> --- So programs like metatrader5 what import certificates from pfx did not work -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 virex <virexmail(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|import pfx fails |Import pfx fails. | |Metatrader 5 cannot connect | |to broker -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 Jactry Zeng <jactry92(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92(a)gmail.com --- Comment #5 from Jactry Zeng <jactry92(a)gmail.com> --- (In reply to virex from comment #0)
crypt32 installed with a winetricks, but pfx files cannot be imported in certification center, and programs cannot import certificates from pfx files.
Why do you need native crypt32? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #6 from virex <virexmail(a)gmail.com> --- metatrader5 can't see pfx certificates without crypt32 installed by winetricks. After installing crypt32 metatrader5 can see pfx certificates ask about password to open, but cannot read this certificate after entering the password. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #7 from Jactry Zeng <jactry92(a)gmail.com> --- (In reply to virex from comment #6)
metatrader5 can't see pfx certificates without crypt32 installed by winetricks. After installing crypt32 metatrader5 can see pfx certificates ask about password to open, but cannot read this certificate after entering the password.
Could you try to describe how to reproduce that 'metatrader5 can't see pfx certificates' bug? Thanks. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #8 from virex <virexmail(a)gmail.com> --- Simplest way is test is start wine control - select internet option - content - certificates - import - select any pfx certificate - file did not recognized -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #9 from virex <virexmail(a)gmail.com> --- Also i added a photo of work metatrader with a installed crypt32 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #10 from virex <virexmail(a)gmail.com> --- Created attachment 62414 --> https://bugs.winehq.org/attachment.cgi?id=62414 photo metatrader5 ask about password for pfx file photo metatrader5 ask about password for pfx file ipfx file must lay like at c:/program files/metatrader 5/config/certificates/49422_open.pfx Without crypt32 installed where is no request of password for pfx file. With a crypt32 installed we se the additional form for password to pfx file. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #11 from virex <virexmail(a)gmail.com> --- Created attachment 62415 --> https://bugs.winehq.org/attachment.cgi?id=62415 photo of metatrader 5 after entering a password for pfx certificate After entering a password for pfx file certificate, program can not open read the certificate. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://files.metaquotes.net | |/metaquotes.software.corp/m | |t5/mt5setup.exe Keywords| |download -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #12 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Is there any way to test this? Did the certificate come with the broker's version of MT5? If so, which one? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=45746 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=45746 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |57950 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=45746 Bug 45746 depends on bug 57950, which changed state. Bug 57950 Summary: Metatrader refuses to run/install http://bugs.winehq.org/show_bug.cgi?id=57950 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=45746 nayuta65535@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nayuta65535@gmail.com --- Comment #13 from nayuta65535@gmail.com --- This looks fixed as well. The reproducer in comment #8 (wine control -> Internet Options -> Content -> Certificates -> Import -> pick a .pfx -> "file not recognized") goes through CryptQueryObject to work out the file type. Support for PFX objects was added there in 962aed51205 ("crypt32: Add support for PFX objects in CryptQueryObject."), first released in wine-4.1 - after the 3.14 this was reported against. I tested on an unmodified wine-11.16 build (fresh prefix, no DLL overrides, builtin crypt32). CryptQueryObject with CERT_QUERY_CONTENT_FLAG_ALL returns TRUE and reports CERT_QUERY_CONTENT_PFX for PKCS#12 blobs, and PFXImportCertStore imports them. Worth noting that comment #0 mentions installing native crypt32 through winetricks. That should not be necessary, and it changes the behaviour being tested here. I do not have the broker-specific MetaTrader 5 certificate, so I cannot confirm that application's symptom directly. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=45746 --- Comment #14 from Hans Leidekker <hans@meelstraat.net> --- (In reply to nayuta65535 from comment #13)
This looks fixed as well. I tested on an unmodified wine-11.16 build (fresh prefix, no DLL overrides, builtin crypt32). CryptQueryObject with CERT_QUERY_CONTENT_FLAG_ALL returns TRUE and reports CERT_QUERY_CONTENT_PFX for PKCS#12 blobs, and PFXImportCertStore imports them.
PFXImportCertStore() may work now but as described in this bug a password dialog should be shown for password protected PFX files. I think we should focus this bug on that part. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (3)
-
wine-bugs@winehq.org -
WineHQ Bugzilla -
WineHQ Bugzilla