Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atpons/slack-mtls-inspector

PoC of Slack API over mTLS
https://github.com/atpons/slack-mtls-inspector

Last synced: about 1 month ago
JSON representation

PoC of Slack API over mTLS

Awesome Lists containing this project

README

        

Slack mTLS PoC
---

https://api.slack.com/authentication/verifying-requests-from-slack#mutual_tls

Read `tls.ConnectionState` and the peer (Slack) indicates a certificate (chained with DigiCert Root CA).

```console
$ CRT_FILE=/etc/letsencrypt/live/atpons.example.com/cert.pem KEY_FILE=/etc/letsencrypt/live/atpons.example.com/privkey.pem HOST=atpons.example.com ./inspector
2020/05/31 08:10:45 HOST=atpons.example.com
2020/05/31 08:10:55 request: found tls peer cert n=0 commonName=platform-tls-client.slack.com
2020/05/31 08:10:55 request: found tls peer cert by Slack
2020/05/31 08:10:55 request: found tls peer cert n=1 commonName=DigiCert SHA2 Secure Server CA
2020/05/31 08:10:55 request: SlackSignature=v0=
```