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

April 22, 2019 251 views
Apache PHP

Hi, I have to set the webhook of my Telegram bot but when I go to execute the command from the php setHook.php terminal this is what gives me:

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

So I tried to look in the file error.log to see if I could find the problem there:

[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'

How can I solve this problem and let my Telegram bot speak correctly with my Amazon EC2 server?

Sincerely,
Feduzi Matteo.

Be the first one to answer this question.