FL
2006-09-08 12:40:01 UTC
Hi,
I have not been able to use local machine client certificates using
ServerXMLHTTP from MSXML 4.0 when run under a non-administrator account,
e.g. normal IIS account IWAM_xxx.
The error I got when run code is similar as follows (in a .VBS file):
set objSrvHTTP = CreateObject("MSXML2.ServerXMLHTTP.4.0")
objSrvHTTP.setOption 3, "LOCAL MACHINE\My\MyCert.com"
objSrvHTTP.open "POST", "https://MyServer.com", false
objSrvHTTP.setRequestHeader "content-Type","text/xml"
objSrvHTTP.send objXMLDocument <--- Error here
The error I got is "Security error". The same code runs fine if run
under the local administrator account, but not if the account is a
restricted user.
I've tried giving access to local machine client certificates using
winhttpcertcfg, but it didn't work. Any hints where to look to solve
this problem? Thanks!
FL
I have not been able to use local machine client certificates using
ServerXMLHTTP from MSXML 4.0 when run under a non-administrator account,
e.g. normal IIS account IWAM_xxx.
The error I got when run code is similar as follows (in a .VBS file):
set objSrvHTTP = CreateObject("MSXML2.ServerXMLHTTP.4.0")
objSrvHTTP.setOption 3, "LOCAL MACHINE\My\MyCert.com"
objSrvHTTP.open "POST", "https://MyServer.com", false
objSrvHTTP.setRequestHeader "content-Type","text/xml"
objSrvHTTP.send objXMLDocument <--- Error here
The error I got is "Security error". The same code runs fine if run
under the local administrator account, but not if the account is a
restricted user.
I've tried giving access to local machine client certificates using
winhttpcertcfg, but it didn't work. Any hints where to look to solve
this problem? Thanks!
FL