Webhook尚未设置!错误:400错误的请求:错误的网络挂钩:无法设置自定义证书文件

时间:2019-04-22 08:25:16

标签: php apache ssl amazon-ec2

未设置Webhook!错误:400错误的请求:错误的Webhook:无法设置自定义证书文件。

我使用了PHP,Apache 2.4和Amazon Web Services EC2。

嗨,我必须设置Telegram机器人的webhook,但是当我去从php setHook.php终端执行命令时,这就是给我的:

Webhook was not set! Error: 400 Bad Request: bad webhook: Failed to set custom certificate file

所以我尝试查看文件error.log以查看是否可以在其中找到问题:

[Mon Apr 22 06:25:04.889464 2019] [ssl:warn] [pid 25110:tid 139846785301440] AH01906: ec2-18-188-25-109.us-east-2.compute.amazonaws.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Apr 22 06:25:04.889716 2019] [ssl:error] [pid 25110:tid 139846785301440] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=feduzimatteo@gmail.com,CN=ec2-18-188-25-109.us-east-2.compute.amazonaws.com,OU=Matteo Feduzi,O=Matteo Feduzi,L=Fermignano,ST=Italia,C=IT / issuer: emailAddress=feduzimatteo@gmail.com,CN=ec2-18-188-25-109.us-east-2.compute.amazonaws.com,OU=Matteo Feduzi,O=Matteo Feduzi,L=Fermignano,ST=Italia,C=IT / serial: B15B0C7C5212BFA0 / notbefore: Apr 21 16:10:39 2019 GMT / notafter: Apr 20 16:10:39 2020 GMT]
[Mon Apr 22 06:25:04.889727 2019] [ssl:error] [pid 25110:tid 139846785301440] AH02604: Unable to configure certificate ec2-18-188-25-109.us-east-2.compute.amazonaws.com:443:0 for stapling
[Mon Apr 22 06:25:04.889794 2019] [mpm_event:notice] [pid 25110:tid 139846785301440] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Mon Apr 22 06:25:04.889800 2019] [core:notice] [pid 25110:tid 139846785301440] AH00094: Command line: '/usr/sbin/apache2'

如何解决此问题并使我的Telegram机器人与Amazon EC2服务器正确对话?

最好的问候, Matteo。

0 个答案:

没有答案