Use OpenSSL C API for public_key_digest instead of calling the openssl binary.