pubkey: Improve comparison of raw public key certificate objects