Skip to content

Commit

Permalink
added badge and version
Browse files Browse the repository at this point in the history
  • Loading branch information
saschamonteiroatea committed Jul 24, 2024
1 parent eb4e30c commit 41d125e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
certs*.html
tlsscan_*
*.json
Makefile
Makefile
certchecker_*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Go Build Cert Checker](https://github.com/saschamonteiro/certchecker/actions/workflows/go.yml/badge.svg)](https://github.com/saschamonteiro/certchecker/actions/workflows/go.yml)
# Cert Checker / TLS Scan

A utility to scan for TLS certificates in a network segment in CIDR format to quickly find expired certificates.
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ func main() {
skipNoDnsFound := flag.Bool("skipnodns", false, "skip no dns found")
htmlOut := flag.String("html", "", "html output file")
jsonOut := flag.String("json", "", "json output file")
version := flag.Bool("version", false, "version")
if *version {
ver := flag.Bool("v", false, fmt.Sprintf("version sha:%s buildtime:%s", sha1ver, buildTime))
flag.Parse()
if *ver {
fmt.Printf("version: %s\n", sha1ver)
fmt.Printf("build time: %s\n", buildTime)
os.Exit(0)
}
flag.Parse()

app.StartTlsCollect(*cidrAddressList, *portList, *skipNoDnsFound, Assets, *htmlOut, *jsonOut)

Expand Down

0 comments on commit 41d125e

Please sign in to comment.