OVERdrive-IRC patches for InspIRCd

get-cert-fingerprint.sh 178B

12345678910
  1. #!/bin/bash
  2. cert="$1"
  3. if [[ -z "$cert" ]]; then
  4. cert="etc/cert.pem"
  5. fi
  6. for hash in "sha256" "sha1"; do
  7. openssl x509 -noout -in "$cert" -fingerprint -${hash} | head -n 1
  8. done