Skip to content

Commit

Permalink
fix: remove nokey option and set empty passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkovtunov authored Jan 3, 2025
1 parent d840593 commit 5c2a5d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions manifests/export/pem_key.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
) {
if $ensure == 'present' {
if $in_pass {
$passin_opt = ['-nokeys', '-passin', 'env:CERTIFICATE_PASSIN']
$passin_opt = ['-passin', 'env:CERTIFICATE_PASSIN']
$passin_env = ["CERTIFICATE_PASSIN=${in_pass}"]
} else {
$passin_opt = []
$passin_opt = ['-passin', 'pass:']
$passin_env = []
}

if $out_pass {
$passout_opt = ['-nokeys', '-passout', 'env:CERTIFICATE_PASSOUT']
$passout_opt = ['-passout', 'env:CERTIFICATE_PASSOUT']
$passout_env = ["CERTIFICATE_PASSOUT=${out_pass}"]
} else {
$passout_opt = []
$passout_opt = ['-nodes']
$passout_env = []
}

Expand Down
8 changes: 4 additions & 4 deletions manifests/export/pkcs12.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@

if $ensure == 'present' {
if $in_pass {
$passin_opt = ['-nokeys', '-passin', 'env:CERTIFICATE_PASSIN']
$passin_opt = ['-passin', 'env:CERTIFICATE_PASSIN']
$passin_env = ["CERTIFICATE_PASSIN=${in_pass}"]
} else {
$passin_opt = []
$passin_opt = ['-passin', 'pass:']
$passin_env = []
}

if $out_pass {
$passout_opt = ['-nokeys', '-passout', 'env:CERTIFICATE_PASSOUT']
$passout_opt = ['-passout', 'env:CERTIFICATE_PASSOUT']
$passout_env = ["CERTIFICATE_PASSOUT=${out_pass}"]
} else {
$passout_opt = []
$passout_opt = ['-passout', 'pass:']
$passout_env = []
}

Expand Down

0 comments on commit 5c2a5d4

Please sign in to comment.