Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
add param validation to nsstools::add_cert_and_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Feb 13, 2014
1 parent 7bb1565 commit 1cd8de4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/add_cert_and_key.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down

0 comments on commit 1cd8de4

Please sign in to comment.