http://bugs.winehq.org/show_bug.cgi?id=29721
Bug #: 29721 Summary: makecert from Windows Platform SDK 7.1 crashes due to unimplemented function mssign32.dll.PvkGetCryptProv Product: Wine Version: 1.4-rc1 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Microsoft SDKs/Windows/v7.1/Bin ... $ wine ./makecert.exe foo ... wine: Call from 0x7b83924f to unimplemented function mssign32.dll.PvkGetCryptProv, aborting wine: Unimplemented function mssign32.dll.PvkGetCryptProv called at address 0x7b83924f (thread 0009), starting debugger... --- snip ---
MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/bb410253.aspx
Regards
http://bugs.winehq.org/show_bug.cgi?id=29721
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.microsoft.com/do | |wnload/en/details.aspx?id=8 | |279
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-01-27 15:20:16 CST --- Hello,
filling fields. SDK 7.1 installer needs .NET 4.0 Framework prerequisite installed
$ sha1sum winsdk_web.exe a8717ebb20a69c7efa85232bcb9899b8b07f98cf winsdk_web.exe
$ wine --version wine-1.4-rc1
Regards
http://bugs.winehq.org/show_bug.cgi?id=29721
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #2 from André H. nerv@dawncrow.de 2012-01-29 08:59:53 CST --- Hi Anastasius, does an error returning stub helps?
http://bugs.winehq.org/show_bug.cgi?id=29721
--- Comment #3 from Anastasius Focht focht@gmx.net 2012-01-29 10:56:41 CST --- Hello André,
--- quote --- Hi Anastasius, does an error returning stub helps? --- quote ---
after adding a stub with E_FAIL it runs into next unimplemented stub(s):
--- snip --- $ wine ./makecert.exe foo ... fixme:mssign:PvkGetCryptProv stub (0, L"Subject Key", (null), 1, (null), L"JoeSoft", 0x1009658, 0x1009658, 0x32fbf4) wine: Call from 0x7b83924f to unimplemented function mssign32.dll.PvkPrivateKeyAcquireContextFromMemory, aborting wine: Unimplemented function mssign32.dll.PvkPrivateKeyAcquireContextFromMemory called at address 0x7b83924f (thread 0009), starting debugger... --- snip ---
The tool needs following stubs that make it not crash:
mssign32.dll.PvkGetCryptProv mssign32.dll.PvkPrivateKeyAcquireContextFromMemory mssign32.dll.PvkFreeCryptProv
--- snip --- $ WINEDEBUG=+tid,+mssign wine ./makecert.exe foo ... 002d:fixme:mssign:PvkGetCryptProv stub (0, L"Subject Key", (null), 1, (null), L"JoeSoft", 0x1009658, 0x1009658, 0x32fbf4) Error: Can't create the key of the subject ('JoeSoft') 002d:fixme:mssign:PvkFreeCryptProv stub ((nil), (null), 1, (null)) Failed 002d:err:ole:CoUninitialize Mismatched CoUninitialize --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=29721
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9e10eee67bd5e71c4f2c15cc9d1 | |6d1ab799d91bb Status|NEW |RESOLVED CC| |leslie_alistair@hotmail.com Resolution| |FIXED
--- Comment #4 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2012-03-13 21:37:25 CDT --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=9e10eee67bd5e71c4f2c15cc9d...
http://bugs.winehq.org/show_bug.cgi?id=29721
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2012-03-16 14:08:04 CDT --- Closing bugs fixed in 1.5.0.
http://bugs.winehq.org/show_bug.cgi?id=29721
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-03-16 17:10:50 CDT --- Really closing bugs fixed in 1.5.0.
http://bugs.winehq.org/show_bug.cgi?id=29721
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.4.x
http://bugs.winehq.org/show_bug.cgi?id=29721
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.4.x |---
https://bugs.winehq.org/show_bug.cgi?id=29721
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |mssign32
https://bugs.winehq.org/show_bug.cgi?id=29721
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.microsoft.com/do |https://web.archive.org/web |wnload/en/details.aspx?id=8 |/20110805064614/http://down |279 |load.microsoft.com/download | |/A/6/A/A6AC035D-DA3F-4F0C-A | |DA4-37C8E5D34E3D/winsdk_web | |.exe
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download link via Internet Archive.
https://web.archive.org/web/20110805064614/http://download.microsoft.com/dow...
https://www.virustotal.com/gui/file/9ea8d82a66a33946e8673df92d784971b35b8f65...
$ sha1sum winsdk_web.exe a8717ebb20a69c7efa85232bcb9899b8b07f98cf winsdk_web.exe
$ du -sh winsdk_web.exe 500K winsdk_web.exe
The web-installer is only a bootstrapper and snapshotting it alone via archive.org is not future-safe. Many (web)installers and payloads have vanished from MDC (Microsoft download center) in 2020.
====
Alternative #1: full offline installer / ISO
https://web.archive.org/web/20120107114630/http://www.microsoft.com/download...
->
https://web.archive.org/web/20140809051201/http://www.microsoft.com/en-us/do...
->
https://web.archive.org/web/20140728031703/http://download.microsoft.com/dow...
$ sha1sum GRMSDK_EN_DVD.iso cde254e83677c34c8fd509d6b733c32002fe3572 GRMSDK_EN_DVD.iso
$ du -sh GRMSDK_EN_DVD.iso 568M GRMSDK_EN_DVD.iso
--- snip --- $ 7z l GRMSDK_EN_DVD.iso
Scanning the drive for archives: 1 file, 594841600 bytes (568 MiB)
Listing archive: GRMSDK_EN_DVD.iso
-- Path = GRMSDK_EN_DVD.iso Type = Udf Physical Size = 594841600 Comment = GRMSDK_EN_DVD Cluster Size = 2048 Created = 2010-05-14 01:00:00
Date Time Attr Size Compressed Name ------------------- ----- ------------ ------------ ------------------------ 2010-04-20 04:49:04 ..... 27 0 Autorun.inf 2010-05-11 04:09:24 ..... 148026 149504 ReleaseNotes.Htm 2010-05-14 17:09:28 D.... Setup 2010-05-14 17:08:55 D.... Setup/MTPack 2010-04-20 04:37:19 ..... 16611628 16613376 Setup/MTPack/netfx_dtp.cab 2010-04-20 04:37:04 ..... 176640 178176 Setup/MTPack/netfx_dtp.msi 2010-05-14 05:11:42 ..... 22836 24576 Setup/SDKSetup.cab 2010-05-14 05:11:42 ..... 1622864 1624064 Setup/SDKSetup.exe 2010-04-20 04:49:04 ..... 251 0 Setup/SDKSetup.exe.config 2010-05-14 17:09:02 D.... Setup/WinSDK 2010-05-14 11:47:27 ..... 678400 679936 Setup/WinSDK/WinSDK_x86.msi 2010-05-14 11:44:55 ..... 13664452 13666304 Setup/WinSDK/cab1.cab 2010-05-14 17:09:03 D.... Setup/WinSDKApplicationVerifier 2010-04-20 04:45:34 ..... 8675840 8677376 Setup/WinSDKApplicationVerifier/ApplicationVerifier.x86.msi 2010-05-14 17:09:03 D.... Setup/WinSDKApplicationVerifier_amd64 2010-04-20 04:45:41 ..... 17019904 17020928 Setup/WinSDKApplicationVerifier_amd64/ApplicationVerifier.amd64.msi 2010-05-14 17:09:04 D.... Setup/WinSDKApplicationVerifier_ia64 2010-04-20 04:45:42 ..... 17922048 17922048 Setup/WinSDKApplicationVerifier_ia64/ApplicationVerifier.ia64.msi 2010-05-14 17:09:08 D.... Setup/WinSDKAppverRedist 2010-05-14 07:26:32 ..... 637440 638976 Setup/WinSDKAppverRedist/WinSDKAppVerRedist_x86.msi 2010-05-14 07:24:02 ..... 42088281 42088448 Setup/WinSDKAppverRedist/cab1.cab 2010-05-14 17:09:10 D.... Setup/WinSDKBuild 2010-05-14 05:39:50 ..... 960512 960512 Setup/WinSDKBuild/WinSDKBuild_x86.msi 2010-05-14 05:37:16 ..... 5720612 5722112 Setup/WinSDKBuild/cab1.cab 2010-05-14 05:35:12 ..... 6153852 6154240 Setup/WinSDKBuild/cab2.cab 2010-05-14 05:35:03 ..... 4797930 4798464 Setup/WinSDKBuild/cab3.cab 2010-05-14 05:35:02 ..... 1049928 1050624 Setup/WinSDKBuild/cab4.cab 2010-05-14 17:09:18 D.... Setup/WinSDKDebugToolsRedist 2010-05-14 07:38:33 ..... 637440 638976 Setup/WinSDKDebugToolsRedist/WinSDKDebugToolsRedist_x86.msi 2010-05-14 07:36:01 ..... 35874600 35874816 Setup/WinSDKDebugToolsRedist/cab1.cab 2010-05-14 07:33:44 ..... 26576986 26578944 Setup/WinSDKDebugToolsRedist/cab2.cab 2010-05-14 17:09:10 D.... Setup/WinSDKDebuggingTools 2010-04-20 04:45:43 ..... 19269120 19269632 Setup/WinSDKDebuggingTools/dbg_x86.msi 2010-05-14 17:09:11 D.... Setup/WinSDKDebuggingTools_amd64 2010-04-20 04:45:42 ..... 17529856 17530880 Setup/WinSDKDebuggingTools_amd64/dbg_amd64.msi 2010-05-14 17:09:12 D.... Setup/WinSDKDebuggingTools_ia64 2010-04-20 04:45:49 ..... 27293184 27293696 Setup/WinSDKDebuggingTools_ia64/dbg_ia64.msi 2010-05-14 17:09:18 D.... Setup/WinSDKHelp 2010-05-14 07:48:19 ..... 891904 892928 Setup/WinSDKHelp/WinSDKHelp_x86.msi 2010-05-14 07:43:46 ..... 1326579 1327104 Setup/WinSDKHelp/cab1.cab 2010-05-14 17:09:19 D.... Setup/WinSDKIntellisenseNFX 2010-05-14 05:57:21 ..... 713728 714752 Setup/WinSDKIntellisenseNFX/WinSDKIntellisenseNFX.msi 2010-05-14 05:54:39 ..... 2887338 2887680 Setup/WinSDKIntellisenseNFX/cab1.cab 2010-05-14 05:54:33 ..... 3276825 3278848 Setup/WinSDKIntellisenseNFX/cab2.cab 2010-05-14 05:54:31 ..... 3141373 3141632 Setup/WinSDKIntellisenseNFX/cab3.cab 2010-05-14 05:54:34 ..... 3061037 3061760 Setup/WinSDKIntellisenseNFX/cab4.cab 2010-05-14 05:54:35 ..... 1828177 1828864 Setup/WinSDKIntellisenseNFX/cab5.cab 2010-05-14 17:09:19 D.... Setup/WinSDKIntellisenseRefAssys 2010-05-14 05:48:42 ..... 646656 647168 Setup/WinSDKIntellisenseRefAssys/WinSDKIntellisenseRefAssys_x86.msi 2010-05-14 05:46:11 ..... 1649588 1650688 Setup/WinSDKIntellisenseRefAssys/cab1.cab 2010-05-14 17:09:20 D.... Setup/WinSDKInterop 2010-05-14 06:03:08 ..... 653824 655360 Setup/WinSDKInterop/WinSDKInterop_x86.msi 2010-05-14 06:00:37 ..... 384506 385024 Setup/WinSDKInterop/cab1.cab 2010-05-14 17:09:20 D.... Setup/WinSDKNetFx40Tools 2010-05-14 07:05:56 ..... 751104 751616 Setup/WinSDKNetFx40Tools/WinSDK_nfx40tools_x86.msi 2010-05-14 07:03:29 ..... 2922989 2924544 Setup/WinSDKNetFx40Tools/cab1.cab 2010-05-14 17:09:20 D.... Setup/WinSDKNetFxTools 2010-05-14 07:00:17 ..... 747520 747520 Setup/WinSDKNetFxTools/WinSDK_nfxtoolsm_x86.msi 2010-05-14 06:57:47 ..... 5547935 5548032 Setup/WinSDKNetFxTools/cab1.cab 2010-05-14 17:09:20 D.... Setup/WinSDKPerformanceToolKit 2010-04-20 04:37:39 ..... 19431936 19433472 Setup/WinSDKPerformanceToolKit/wpt_x86.msi 2010-05-14 17:09:22 D.... Setup/WinSDKPerformanceToolKit_amd64 2010-04-20 04:37:41 ..... 20184576 20185088 Setup/WinSDKPerformanceToolKit_amd64/wpt_x64.msi 2010-05-14 17:09:23 D.... Setup/WinSDKPerformanceToolKit_ia64 2010-04-20 04:37:35 ..... 20088832 20088832 Setup/WinSDKPerformanceToolKit_ia64/wpt_ia64.msi 2010-05-14 17:09:27 D.... Setup/WinSDKRedist 2010-05-14 07:14:24 ..... 637440 638976 Setup/WinSDKRedist/WinSDKRedist_x86.msi 2010-05-14 07:11:54 ..... 38709706 38711296 Setup/WinSDKRedist/cab1.cab 2010-05-14 07:10:42 ..... 19562219 19562496 Setup/WinSDKRedist/cab2.cab 2010-05-14 17:09:28 D.... Setup/WinSDKSamples 2010-05-14 06:17:50 ..... 2434560 2435072 Setup/WinSDKSamples/WinSDKSamples_x86.msi 2010-05-14 06:11:17 ..... 11615398 11616256 Setup/WinSDKSamples/cab1.cab 2010-05-14 06:13:12 ..... 14317157 14317568 Setup/WinSDKSamples/cab2.cab 2010-05-14 06:10:42 ..... 2247426 2248704 Setup/WinSDKSamples/cab3.cab 2010-05-14 17:09:28 D.... Setup/WinSDKTools 2010-05-14 06:38:26 ..... 772608 774144 Setup/WinSDKTools/WinSDKTools_x86.msi 2010-05-14 06:35:58 ..... 11211250 11212800 Setup/WinSDKTools/cab1.cab 2010-05-14 17:09:29 D.... Setup/WinSDKWin32Tools 2010-05-14 06:50:56 ..... 743936 745472 Setup/WinSDKWin32Tools/WinSDKWin32Tools_x86.msi 2010-05-14 06:48:24 ..... 8229168 8230912 Setup/WinSDKWin32Tools/cab1.cab 2010-05-14 07:50:55 ..... 59224 59392 Setup/custsat_amd64.dll 2010-05-14 09:44:17 ..... 105304 106496 Setup/custsat_ia64.dll 2010-05-14 05:11:42 ..... 39768 40960 Setup/custsat_x86.dll 2010-05-14 17:08:56 D.... Setup/vc_stdamd64 2010-04-20 04:37:16 ..... 24785124 24786944 Setup/vc_stdamd64/vc_stdamd64.cab 2010-05-11 04:09:24 ..... 287232 288768 Setup/vc_stdamd64/vc_stdamd64.msi 2010-05-14 17:08:58 D.... Setup/vc_stdia64 2010-04-20 04:37:29 ..... 30053038 30054400 Setup/vc_stdia64/vc_stdia64.cab 2010-05-11 04:09:24 ..... 409600 409600 Setup/vc_stdia64/vc_stdia64.msi 2010-05-14 17:09:02 D.... Setup/vc_stdx86 2010-04-20 04:38:06 ..... 71673244 71673856 Setup/vc_stdx86/vc_stdx86.cab 2010-05-11 04:09:24 ..... 535552 536576 Setup/vc_stdx86/vc_stdx86.msi 2010-05-14 05:11:42 ..... 73544 73728 setup.exe 2010-05-14 12:04:15 ..... 121344 122880 winsdk_dvdx86.msi ------------------- ----- ------------ ------------ ------------------------ 2010-05-14 17:09:29 593892926 593954816 66 files, 28 folders --- snip ---
====
Alternative #2: minimal offline installer by analysis
Figure out the package dependencies / payloads for the app(s) in question by doing +msi,+wininet trace on the web-installer and inspect .msi packages if they have external .cab references in 'media' table.
For 'makecert' (WinSDK_makecert_exe_24DFD147_3F96_47FC_B09E_5FCACE50CD4C_amd64) this is the minimal set of packages:
* https://web.archive.org/web/20180409023150/https://download.microsoft.com/do...
https://www.virustotal.com/gui/file/75a4cf13efca7639b5964bb6ae625f4f76c71804...
$ sha1sum WinSDKTools_amd64.msi 41d8e28f34a5411d7d56cdb37ad538f0d3886ebd WinSDKTools_amd64.msi
$ du -sh WinSDKTools_amd64.msi 772K WinSDKTools_amd64.msi
* https://web.archive.org/web/20180409024241/https://download.microsoft.com/do...
https://www.virustotal.com/gui/file/f143f792e5d3623034467e7c8386b9769bf2bea3...
$ sha1sum cab1.cab 33101e29f29d083ddfd590536f25bcce61470cd4 cab1.cab
$ du -sh cab1.cab 12M cab1.cab
Minimal offline install with above packages downloaded prior:
--- snip --- $ wine msiexec -i WinSDKTools_amd64.msi --- snip ---
====
Alternative #3: archive.org Microsoft Download Center 2020 backup
https://wiki.archiveteam.org/index.php/Microsoft_Download_Center
https://archive.org/details/archiveteam_microsoft_download
--- quote --- Citing hash collection possibilities/security, Microsoft removed a variety of downloads from their download center, opening up a world of opportunity for sketchy sites to offer the now missing versions and items. This is a last-minute grab of these items before they were removed in August of 2020. --- quote ---
Several terabytes, split across many 25 GB archives. I'm not sure how complete that backup is, if they really captured all the web-installer payloads as well (spider mode?). Also it's a bit cumbersome to locate individual artifacts there, let alone reference them. Hence I prefer to research minimal offline installs for reproduce/documentation (#2).
Regards