Refs #0001   Fixing comparison of .pubcert and public key in keystore

On some platforms, base64 produces multi-line output, which was not
originally expected