File: certByFP.sh

package info (click to toggle)
golang-github-zmap-zlint 3.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,008 kB
  • sloc: sh: 162; makefile: 38
file content (16 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e

cd "$(dirname "$0")"

DATA="../data/*.csv"

row=$(grep "$1" $DATA)

echo "$row" | \
  awk -F "," '{print $(NF-1)}' | \
  base64 -d | \
  openssl x509 -inform DER -outform PEM -text

echo ""
echo "+ View on Censys: https://censys.io/certificates/$1"
echo ""