code: def from_file(cls, filename):
          
          with open(filename, "r") as pem_file:
              data = pem.readPemFromFile(pem_file)
          return cls.from_der_data(data)
docs: Load certificate from a file.