openssl: a test using checksums

Continuing the series of test PRs for yet another day!

Writes a temp file, uses `openssl dgst` to checksum it and asserts the computed checksum matches