Skip to content

Commit

Permalink
Use private_key parameter when creating certificate
Browse files Browse the repository at this point in the history
Fixes #185
  • Loading branch information
vasilevalex committed Jul 18, 2024
1 parent 81502ee commit 5736075
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions manifests/certificate/x509.pp
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,16 @@
encrypted => $encrypted,
}
~> x509_cert { $crt:
ensure => $ensure,
template => $cnf,
csr => $csr,
days => $days,
password => $password,
req_ext => !empty($altnames) or !empty($extkeyusage),
force => $force,
ca => $ca,
cakey => $cakey,
ensure => $ensure,
template => $cnf,
private_key => $key,
csr => $csr,
days => $days,
password => $password,
req_ext => !empty($altnames) or !empty($extkeyusage),
force => $force,
ca => $ca,
cakey => $cakey,
}

# Set owner of all files
Expand Down

0 comments on commit 5736075

Please sign in to comment.