Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


winhttp untrusted server certificate

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60176
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> winhttp untrusted server certificate
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 winhttp untrusted server certificate - 5/13/2008 10:47:43 PM   
  vincentt

 

Posts: 8
Score: 0
Joined: 5/13/2008
Status: offline
Original message moved by ebgreen
Reason : Moved to proper forum
Hi all,

I have written a script, which is connected to web server via https, the web server require client certificate athorization. The script is downloading content of the page.
That is working well, if the server cerfificate is authorize trusted certification authority and if the website address is valid.
But when server certificate is not valid, the script does not work.
Is any option as
WinHttpRequestSslErrorFlags, which is allowed invalid server certificate?
Thanks for any advice

Set Http = CreateObject("WinHttp.WinHttpRequest.5.1")
Http.Open "GET", "https://192.168.1.1/exchange", False
Http.SetClientCertificate "LOCAL_MACHINE\Personal\tom"
Http.Send
msgbox Http.ResponseText




 
 
Post #: 1
 
 RE: winhttp untrusted server certificate - 5/14/2008 2:12:10 AM   
  mcnd

 

Posts: 23
Score: 0
Joined: 4/27/2008
Status: offline
Http.Option(4) = 256 + 512 + 4096 + 8192
Http.Send

(in reply to vincentt)
 
 
Post #: 2
 
 RE: winhttp untrusted server certificate - 5/14/2008 4:58:56 AM   
  vincentt

 

Posts: 8
Score: 0
Joined: 5/13/2008
Status: offline
It works fine! :)

Thanks a lot

(in reply to mcnd)
 
 
Post #: 3
 
 RE: winhttp untrusted server certificate - 5/14/2008 7:26:27 PM   
  vincentt

 

Posts: 8
Score: 0
Joined: 5/13/2008
Status: offline
Is anywhere description of option(1), option(2) ....?
I cannot find out it.

(in reply to vincentt)
 
 
Post #: 4
 
 RE: winhttp untrusted server certificate - 5/14/2008 11:59:07 PM   
  ebgreen


Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
Google is your friend:

http://msdn.microsoft.com/en-us/library/aa384108(VS.85).aspx

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to vincentt)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> winhttp untrusted server certificate Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts