{"id":24341060,"url":"https://github.com/nhalstead/sprint","last_synced_at":"2025-09-28T02:30:49.005Z","repository":{"id":144213446,"uuid":"146706242","full_name":"nhalstead/sprint","owner":"nhalstead","description":"SSL Fingerprint Tool written in Go for the CLI and package use.","archived":false,"fork":false,"pushed_at":"2021-05-19T22:23:24.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T19:54:15.420Z","etag":null,"topics":["cert","cert-pin","cli","fingerprint","package","ssl-fingerprint"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhalstead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-30T06:34:24.000Z","updated_at":"2021-06-18T12:28:48.000Z","dependencies_parsed_at":"2024-01-20T04:22:01.036Z","dependency_job_id":null,"html_url":"https://github.com/nhalstead/sprint","commit_stats":null,"previous_names":["nhalstead/ssl-fingerprint","nhalstead/go-ssl-fingerprint"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhalstead%2Fsprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhalstead%2Fsprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhalstead%2Fsprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhalstead%2Fsprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhalstead","download_url":"https://codeload.github.com/nhalstead/sprint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234475373,"owners_count":18839363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cert","cert-pin","cli","fingerprint","package","ssl-fingerprint"],"created_at":"2025-01-18T07:13:39.995Z","updated_at":"2025-09-28T02:30:43.757Z","avatar_url":"https://github.com/nhalstead.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSL Fingerprint (sprint)\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/nhalstead/ssl-fingerprint)](https://goreportcard.com/report/github.com/nhalstead/ssl-fingerprint)\n[![GoDoc](https://godoc.org/github.com/nhalstead/ssl-fingerprint?status.svg)](https://godoc.org/github.com/nhalstead/ssl-fingerprint)\n[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\nThis cli application written in go will connect to the given domain and return the `md5`/`sha1`/`sha256`/`sha512` fingerprint formatted appropriately.\n\nSimple, Fast, Easy\n\n### Why?\n\nThe main purpose of this was for debugging of SSL certs but this package can be used in some automation tasks like cert pinning or validation.\n\nThis is a CLI tool and a package.\n\n### How to use the Package\n\nAdd the following line to import the package and start using it!\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t// Needed to be imported to work\n\t\"github.com/nhalstead/sprint\"\n)\n\nfunc main() {\n\ttest, _ := sprint.GetFingerprint(\"google.com\", false)\n\n\tfmt.Println(\"Sha256 Fingerprint of google.com: \", test.SHA256)\n}\n```\n\n### How to use the CLI\n\n\u003e sprint host \\[domain\\] -1\n\nTo use SHA256 or SHA512 simply use the `-2` (or `--sha-256`) and `-5` (or `--sha-512`) flags respectively.\n\n\u003e sprint host \\[domain\\] -2\n\u003e\n\u003e sprint host \\[domain\\] -5\n\n#### Example Usage\n\n\u003e sprint host google.com -1\n\u003e\n\u003e F0\\:48\\:7A\\:59\\:65\\:34\\:33\\:F8\\:A1\\:92\\:C6\\:C4\\:FB\\:9A\\:CC\\:C5\\:AD\\:0C\\:B3\\:E2\n\n#### Advanced Usage\n\nIf in use for bash scripts you can use `sprint match`. Sprint Match will fetch the fingerprint and return a status using the exit codes.\n\nA Non-zero exit code means that it has failed the check or failed to connect during the process.\n\nThis makes it simple to implement a method of cert pinning without the need to use other languages with extra libraries.\n\n#### Help (-h / --help)\n\n```\nUsage:\n  sprint [command]\n\nAvailable Commands:\n  completion  generate the autocompletion script for the specified shell\n  help        Help about any command\n  host        Get ssl fingerprint of a URL\n  match       Get ssl fingerprint of a URL and check if it matches the given fqdn or ip\n\nFlags:\n  -h, --help   help for sprint\n```\n\n```\nUsage:\n  sprint host [fqdn or ip] [flags]\n\nFlags:\n  -d, --disable-nth        disable Nth separator\n  -h, --help               help for host\n  -m, --md5                return md5 fingerprint\n  -s, --separator string   separator between many hashes (default \",\")\n  -1, --sha-1              return sha1 fingerprint\n  -2, --sha-256            return sha256 fingerprint\n  -5, --sha-512            return sha512 fingerprint\n```\n\n```\nUsage:\n  sprint match [fqdn or ip] [fingerprint] [flags]\n\nFlags:\n  -h, --help   help for match\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhalstead%2Fsprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhalstead%2Fsprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhalstead%2Fsprint/lists"}