def _LoadCert(self, certstr):
    try:
      cert = x509.LoadCertificateFromPEM(certstr)
    except x509.Error, e:
      raise ValueError(str(e))
    return cert
Load a certificate and return a cert object.
dataset/ETHPy150Open google/simian/src/simian/auth/base.py/Auth1._LoadCert