From cecbd34cf9e15334137966b2b5022ba621aec024 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 14 Dec 2023 09:24:54 -0800 Subject: [PATCH] Update fortios.rb "config system acme" uses "set privatekey" instead of the usual "set private-key" stanza on 7.0.x (tested on 7.0.13). --- lib/oxidized/model/fortios.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index e2328f021..cf518f656 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