code: def check_cert(certfile):
      
      cmd = 'openssl x509 -in {} -text -noout'.format(certfile)
      out = subprocess.check_output(cmd, shell=True)
      return out
docs: output the text format of the certificate
      :param filepath: file path to the ssl certificate
      :returns: string