Fixed: openssl:Error: 'mac' is an invalid command.
openssl mac is OpenSSL 3's command for HMACs and other message authentication codes. On a Mac, it fails with openssl:Error: 'mac' is an invalid command. and a long list of commands. The openssl that comes with macOS isn't OpenSSL 3, but its dgst -hmac command computes the same HMAC.
