sslhound-matrix
This is just a proof of concept Matrix bot that can run SSL checks.
Build
There are only a couple of key dependencies:
The github.com/ngerakines/sslhound-matrix/cmd
package contains the main file and entry point.
Configuration
A configuration file (config.json
) is required. It must contain the user id, access token, and matrix server to connect to.
{
"user_id": "@sslhound:your.matrix.host",
"access_token": "redacted",
"home_server": "https://your.matrix.host/"
}
Quick Start
-
Create the sslhound user on your matrix server:
register_new_matrix_user -c path/to/homeserver.yaml https://localhost:8008/
-
Login and get credentials:
$ curl --data '{"identifier": {"type": "m.id.user", "user": "sslhound" }, "password": "yourpassword", "type": "m.login.password", "device_id": "sslhoundbot", "initial_device_display_name": "sslhound"}' https://your.matrix.host/_matrix/client/r0/login
-
Create a configuration file using the information above. Be sure to set the full matrix URL.
-
Run the bot
$ go run ./cmd/main.go --config ./path/to/config
-
Invite the bot to a channel:
/invite @sslhound:your.matrix.host
-
Request a check:
!check your.matrix.host:443
Docker
-
Build
$ docker build -t sslhound-matrix .
-
Run
$ docker run -v C:\path\to\sslhound-matrix\config.json:/app/config.json sslhound-matrix -- --config=/app/config.json
-
Use
!check heroku.com:443
License
MIT License
Copyright (c) 2021 Nick Gerakines