0 Replies Latest reply on Jan 18, 2017 2:30 PM by greenfieldsys

    Fortinet - Backup Ignore Text

    greenfieldsys

      I am attempting to ignore the text for the certificates in the backup running config.

       

      In variations I have attempted to use the following to ignore the certificate text block but it does not appear to be functioning.  Is there a debug or some other command I can use to do a match against the running config in order to bypass?

       

      {set.ca}-{end}

      {set.certificate}-{end}

       

      to ignore text such as:

       

      config certificate ca

          edit "G_CA_Cert_1"

              set ca "-----BEGIN CERTIFICATE-----

      AmigAwIBAgIQfee1KW4P55BHH/uNrE9/IjANBgkqhkiG9w0BAQsFADBI

      MRMwEQYKCZImiZPyLGQBGRYDY29tMRcwFQYKCZImiZPyLGQBGRYHaGVpZG1hcjEY

      ........

      a2cUYoZ1z3kUY5iP3+MVBmuTCoQfWzG7ys9l4DLmMYhBQGgE4sbmi1fCVUKCfWAC

      Q3YHC2UgnigkStLjFnhmSQQ4DVziRlfxfvNmpmFJcuDtBOh3b3+E0eMx8HZSG3H8

      uqAgtV290QjiOVLkvEKar3SJdfVkH6O87

      -----END CERTIFICATE-----"

          next

      end