使用httpwebrequest下载经过数字签名的msi文件 [英] download a digitally signed msi file using httpwebrequest
问题描述
大家好,
我在使用httpwebrequest / httpwebresponse class下载MSI文件时遇到了问题。
是的,我可以获得响应流,然后我使用FileStream将文件保存到本地,但是当我执行该文件时,它无法正常运行。
但是当我使用WebClient下载时同样的文件,它工作正常。
目标uri进行测试是办公室365登录助手, 链接是
https://bposast.vo.msecnd.net/MsoIdcrlGa/4209/x64/en /msoidcrl.msi
当我使用httpwebrequest / httpwebresponse时,是否有额外的工作要下载数字签名文件?
谁可以给我一些 非常感谢帮助!
谢谢,
-Haibo
< blockquote>
此下载似乎有两个部分: 第一部分是有效载荷......
第二部分是:
第二部分是证书部分,它要小得多。 我相信你必须能够处理这两个部分,但我不确定协议或如何做到这一点。 如果我们考虑证书如何工作,我相信证书
被放入证书商店。 当应用程序运行它告诉操作系统时,我需要一个证书。 操作系统随后前往商店查找所需内容。
Hi all,
I'v encountered a problem while downloading a MSI file using httpwebrequest/httpwebresponse class.
that is, I can get the response stream and then I used FileStream to save the file to local, but when I execute the file, it cannot run properly.
but when I used WebClient to download the same file, it worked fine.
the target uri for testing is the office 365 sign in assistant, the link is
https://bposast.vo.msecnd.net/MsoIdcrlGa/4209/x64/en/msoidcrl.msi
is there any extra work to do to download a digitally signed file when I use httpwebrequest/httpwebresponse ?
any one who can give me some help is very appreciated!
Thanks,
-Haibo
There seems to be two parts to this download: The first part is the payload...
The second part is this:
The second part is the certificate portion and it's much smaller. I believe that you have to be able to handle both parts but am unsure of the protocol or how to do it. If we think about how certificates work though I believe the certificate is put into the certificate store. When the application runs it tells the OS, I need a certificate. The OS then goes to the store to find what is needed.
这篇关于使用httpwebrequest下载经过数字签名的msi文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!