docs: def pretty_format_cert(cls, cert):
          """ Pretty display of a certificate."""
          crt = cert.get('cert')
          if crt:
              crt = ('-----BEGIN CERTIFICATE-----\n' +
                     '\n'.join([crt[index * 64:(index + 1) * 64]
                                for index in range(int(len(crt) / 64) + 1)]).rstrip('\n') +  # noqa
                     '\n-----END CERTIFICATE-----')
          return crt