sydneyli / starttls-scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

starttls-scanner

Setup

  1. Install go and postgres.
  2. Download the project and copy the configuration file:
go get github.com/EFForg/starttls-scanner
cd $GOPATH/github.com/EFForg/starttls-scanner
`cp .env.example .env`
  1. Edit .env with your postgres credentials and any other changes. You can also store this in the environment.
  2. Ensure postgres is running, then run db/scripts/init_db.sql in the appropriate postgres DB in order to initialize your database.
  3. Build the scanner and start serving requests:
go build
./starttls-scanner

Via Docker

cp .env.example .env
docker-compose build
docker-compose up

Testing

# Service tests
go test -v

# Database tests
go test ./db -v

About

License:Other


Languages

Language:Go 99.5%Language:Dockerfile 0.5%