[Bug 42383] New: certmgr.exe is unable to import certificate in PKCS12 format
https://bugs.winehq.org/show_bug.cgi?id=42383 Bug ID: 42383 Summary: certmgr.exe is unable to import certificate in PKCS12 format Product: Wine Version: 2.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs(a)winehq.org Reporter: info(a)winomega.com Distribution: --- Created attachment 57178 --> https://bugs.winehq.org/attachment.cgi?id=57178 error message Microsoft Certificate Manager Tool (certmgr.exe) is unable to import PKCS12 files. When this is attempted it failed with following error: "The file format is not recognized. Please select another file." I'm using the 32-bit version as published in Microsoft Visual Studio 2017 (freely downloadable). Its md5sum is: 322bf8029866cf3eb7f1de33f18fb07a certmgr.exe -- 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=42383 Omega Software <info(a)winomega.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://msdn.microsoft.com/ | |en-us/library/e78byta0(v=vs | |.110).aspx -- 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=42383 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com -- 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=42383 --- Comment #1 from Omega Software <info(a)winomega.com> --- Created attachment 57272 --> https://bugs.winehq.org/attachment.cgi?id=57272 WINEDEBUG=+crypt trace Attaching a trace -- hand-edited to remove potentially sensible information (all chunks of blobs in binary or hex format have been replaced by ***REMOVED***) The following line: warn:crypt:CryptQueryObject unimplemented for types 00001000 makes me suspect PFX/P12 support simply isn't implemented, as I can import PEM (base64-encoded DER) public keys just fine. -- 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=42383 nayuta65535@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nayuta65535@gmail.com --- Comment #2 from nayuta65535@gmail.com --- This looks fixed. The trace in comment #1 shows: warn:crypt:CryptQueryObject unimplemented for types 00001000 0x1000 is CERT_QUERY_CONTENT_FLAG_PFX (1 << CERT_QUERY_CONTENT_PFX). Support for PFX objects was added to CryptQueryObject in 962aed51205 ("crypt32: Add support for PFX objects in CryptQueryObject."), which first shipped in wine-4.1 - after the 2.1 this was reported against. CERT_QUERY_CONTENT_FLAG_PFX is no longer part of the unimplementedTypes mask in dlls/crypt32/object.c, so that warning can no longer be emitted for a PFX blob. I tested on an unmodified wine-11.16 build (../configure --enable-archs=i386,x86_64, fresh prefix, no DLL overrides). CryptQueryObject called with CERT_QUERY_CONTENT_FLAG_ALL returns TRUE and reports CERT_QUERY_CONTENT_PFX (12) for PKCS#12 blobs - certificate-only ones included, and ones encrypted with the legacy pbeWithSHAAnd40BitRC2-CBC scheme. I do not have certmgr.exe from VS2017, so I have not reproduced the original symptom end to end; someone who has it may want to confirm before this is closed. -- 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=42383 Hans Leidekker <hans@meelstraat.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |962aed51205d9ee8245904a107d | |79b6c5aa3cdb5 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #3 from Hans Leidekker <hans@meelstraat.net> --- (In reply to nayuta65535 from comment #2)
This looks fixed.
The trace in comment #1 shows:
warn:crypt:CryptQueryObject unimplemented for types 00001000
0x1000 is CERT_QUERY_CONTENT_FLAG_PFX (1 << CERT_QUERY_CONTENT_PFX). Support for PFX objects was added to CryptQueryObject in 962aed51205 ("crypt32: Add support for PFX objects in CryptQueryObject."), which first shipped in wine-4.1 - after the 2.1 this was reported against. CERT_QUERY_CONTENT_FLAG_PFX is no longer part of the unimplementedTypes mask in dlls/crypt32/object.c, so that warning can no longer be emitted for a PFX blob.
Right, let's close this as fixed by 962aed51205d9ee8245904a107d79b6c5aa3cdb5. If certmgr.exe still fails to import PKCS12 files that should be reported in a new bug report. -- 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 (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla