English 中文(简体)
PHP cURL SSL 窗户中的错误
原标题:PHP cURL SSL error on windows

我在使用窗户的PHP和URL方面存在奇怪的问题。

如果有“URL”向“httpsresource”发出呼吁。 直到今天早上,所有东西都得到了罚款。 如今,LURL在要求URL时就犯了这一错误:

SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

我读过了.字文档,或对东道方的核查表示不满。 但是,我不想利用其中任何一个,因为我不禁要问造成这一问题是什么。

How could cURL verify the URLs until today? Does it use some system CA info? I haven t done any update to PHP or cURL in the last day.

最佳回答

很可能,服务器的证书已经过期,或者被自签证书、由你不信任的电算中心签发的证书或发给错误对象的证书所取代。

不管问题是什么,它是服务器的一方,与你的代码毫无关系,你应该与你所服务的人们联系,向他们通报问题。

You can visit the URL in a browser to easily inspect the certificate - the browser will most likely give you a nice human readable message telling you exactly what the problem is, as it wont be able to verify the certificate either.

一旦你与服务提供者联系,以核实他们确实存在证书问题,而有些人试图利用错误的服务器(这毕竟是SSL的主要目的之一)来欺骗你,你就能够把服务器证书作为临时固定装置进行过滤。

问题回答

添加:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

i gues服务器设置必须改变





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签