Hi all,
I’ve just installed SSL certificate for my Mattermost hosted in Google Cloud Platform, now mattermost works fine with no issue, but not the Webhook.
I’ve enabled Webhook for Mattermost and generated a webhook URL from it, and have my developer team to copy it inside Gitlab webhook settings.
Unfortunately, the error message below displayed:
Hook execution failed: SSL_connect returned=1 errno=0 state=error: certificate verify failed
and no webhook messages being sent to Mattermost channel.
For your information, I’ve webhook URL generated as following:
https://chat.3lc.my:8065/hooks/oxe4z3zaxiyqip11z6zgerdqyy
I’m using Letsencrypt SSL for my Mattermost domain.
And I have the following logs from my Gitlab:
=======================================
Started GET “/3LCsystems/webServices/services/slack/test” for 192.168.2.145 at 2017-09-01 14:06:16 +0800
Processing by Projects::ServicesController#test as HTML
Parameters: {“namespace_id”=>“3LCsystems”, “project_id”=>“webServices”, “id”=>“slack”}
Completed 500 Internal Server Error in 260ms (ActiveRecord: 6.3ms)
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
app/models/project_services/slack_service.rb:79:in execute' app/models/service.rb:116:in
test’
app/controllers/projects/services_controller.rb:34:in test' lib/gitlab/request_profiler/middleware.rb:15:in
call’
lib/gitlab/middleware/go.rb:16:in `call’
======================================
Is there something wrong with my configuration? Or is it caused by the SSL certificate itself? I’m beginner in Mattermost and SSL.
Hope someone can guide me on this, now all the webhooks are not working.
Thank you.
Best regards,
Kong