Extract x509 certificate from xml