Skip to content

Instantly share code, notes, and snippets.

@phred
Created November 20, 2014 15:44
Show Gist options
  • Save phred/aca9bc3aad422acc0c55 to your computer and use it in GitHub Desktop.
Save phred/aca9bc3aad422acc0c55 to your computer and use it in GitHub Desktop.
sha2sum.sh
#!/bin/bash
openssl x509 -in "$1" -noout -modulus | paste <( echo $1 ) <( shasum -a 256 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment