Skip to content

Instantly share code, notes, and snippets.

@TechByTom
Created December 17, 2020 20:56
Show Gist options
  • Select an option

  • Save TechByTom/2ee856c45b92423c418be7ef01128724 to your computer and use it in GitHub Desktop.

Select an option

Save TechByTom/2ee856c45b92423c418be7ef01128724 to your computer and use it in GitHub Desktop.
Bash one liner to get all certificates from crt.sh
curl -s 'https://crt.sh/?q=%.'$1'&output=json' | jq '.[] | {name_value}' | grep "name_value" | sed 's/\"//g' | cut -d":" -f2- | tr -d '[:blank:]' | sed 's/\\n/\n/g' | tr '[:upper:]' '[:lower:]' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment