WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.



Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Error 12045 Invalid Certificate

Keywords: 	 error 12045 invalid certificate


How do I avoid / bypass the Security Alert from Invalid certificate with WinBatch? I am using the following code to connected and it used to work until they change certificate. Not I get 12045 as error. Please advice, thanks.
connecthandle=iHostConnect(tophandle, host, @HTTPS, "abc", "123")
datahandle=iHttpInit(connecthandle,"GET","/","", 0)
rslt = iHttpOpen(datahandle, "", 0, 0)


Well you can try adding a 1+2+4 for the last parameter in the iHttpInit statement.

But that probablt will not work for a truly bad certificate. It only forgives minor errors.

You probably have to attach to the web site with MSIE and tell MSIE that you like their certificate and truct it. Maybe you need a Root Certificate Update from the Microsoft Products Update.

Article ID:   W15433
File Created: 2017:07:28:12:58:45
Last Updated: 2003:05:13:10:27:43