diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index 56d01e62d..71923f873 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -29,6 +29,7 @@ class FortiOS < Oxidized::Model cfg.gsub! /(set (?:passwd|password|key|group-password|auth-password-l1|auth-password-l2|rsso|history0|history1)) .+/, '\\1 ' cfg.gsub! /(set md5-key [0-9]+) .+/, '\\1 ' cfg.gsub! /(set private-key ).*?-+END (ENCRYPTED|RSA|OPENSSH) PRIVATE KEY-+\n?"$/m, '\\1' + cfg.gsub! /(set privatekey ).*?-+END (ENCRYPTED|RSA|OPENSSH) PRIVATE KEY-+\n?"$/m, '\\1' cfg.gsub! /(set ca )"-+BEGIN.*?-+END CERTIFICATE-+"$/m, '\\1' cfg.gsub! /(set csr ).*?-+END CERTIFICATE REQUEST-+"$/m, '\\1' cfg