github.com/zmap/zlint@v1.1.0/integration/certByFP.sh (about)

     1  #!/bin/bash -e
     2  
     3  cd "$(dirname "$0")"
     4  
     5  DATA="../data/*.csv"
     6  
     7  row=$(grep "$1" $DATA)
     8  
     9  echo "$row" | \
    10    awk -F "," '{print $(NF-1)}' | \
    11    base64 -d | \
    12    openssl x509 -inform DER -outform PEM -text
    13  
    14  echo ""
    15  echo "+ View on Censys: https://censys.io/certificates/$1"
    16  echo ""