From 1cd8de4a0e72e7c7aa84ce01eb2a86e03a0e1612 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 13 Feb 2014 14:39:15 -0700 Subject: [PATCH] add param validation to nsstools::add_cert_and_key --- manifests/add_cert_and_key.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/add_cert_and_key.pp b/manifests/add_cert_and_key.pp index 75c9bac..6d5fc59 100644 --- a/manifests/add_cert_and_key.pp +++ b/manifests/add_cert_and_key.pp @@ -30,6 +30,11 @@ ) { include nsstools + validate_absolute_path($certdir) + validate_absolute_path($cert) + validate_absolute_path($key) + validate_string($nickname) + # downcase and change spaces into _s $pkcs12_name = downcase(regsubst("${nickname}.p12", '[\s]', '_', 'GM'))