utils: Add functions to sign and verify X509 certs using HMAC