Mattermost Peer-to-Peer Forum

Jira webhook throwing TLS Handhsake Error


#1

When making any changes within a specific project on Jira, Mattermost immediately spits out this error:

{“level”:“info”,“ts”:1548826292.1131835,“caller”:“http/server.go:1763”,“msg”:“http: TLS handshake error from xxx.xxx.xxx.xxx:61090: EOF”,“source”:“httpserver”}

curl -v --insecure "https://myurl/plugins/jira/../.../… --> works and returns fine.

Forward80to443 = True

But unfortunately, I’m receiving no messages to my channel.

Please help.


#2

The curl results from our Jira server (Windows Server 2008):

C:\Users\Administrator.>C:\curl\curl.exe -v --insecure “https://xxxx.xxxx.com/plugins/jira/webhook?secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeam&team=test&channel=testchannel” --data '{“event”:“some_jira_event”}'1~

  • Trying x.xxx.xx.xxx…

  • TCP_NODELAY set

  • Connected to xxxx.xxxx.com (xxxx.xx.xxx.xxx) port 443 (#0)

  • ALPN, offering h2

  • ALPN, offering http/1.1

  • TLSv1.3 (OUT), TLS handshake, Client hello (1):

  • TLSv1.3 (IN), TLS handshake, Server hello (2):

  • TLSv1.2 (IN), TLS handshake, Certificate (11):

  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):

  • TLSv1.2 (IN), TLS handshake, Server finished (14):

  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

  • TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

  • TLSv1.2 (OUT), TLS handshake, Finished (20):

  • TLSv1.2 (IN), TLS handshake, Finished (20):

  • SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256

  • ALPN, server accepted to use h2

  • Server certificate:

  • subject: CN=xxxx.xxxx.com

  • start date: Jan 20 21:14:59 2019 GMT

  • expire date: Apr 20 21:14:59 2019 GMT

  • issuer: C=US; O=Let’s Encrypt; CN=Let’s Encrypt Authority X3

  • SSL certificate verify result: unable to get local issuer certificate (20), c
    ontinuing anyway.

  • Using HTTP2, server supports multi-use

  • Connection state changed (HTTP/2 confirmed)

  • Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0

  • Using Stream ID: 1 (easy handle 0x624ff0)

POST /plugins/jira/webhook?secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&team=test&channel=testchannel HTTP/2
Host: xxxx.xxxx.com
User-Agent: curl/7.63.0
Accept: /
Content-Length: 27
Content-Type: application/x-www-form-urlencoded

  • Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
  • We are completely uploaded and fine
    < HTTP/2 400
    < content-type: text/plain; charset=utf-8
    < x-content-type-options: nosniff
    < content-length: 54
    < date: Wed, 30 Jan 2019 06:09:50 GMT
    <
    invalid character ‘’’ looking for beginning of value
  • Connection #0 to host xxxx.xxxx.com left intact