|
simp-beaker-helpers has several fun abilities with PKI certs. It can:
However, acceptance testing for PKI has exposed that each module handles PKI certs differently with parameters and logic.
In various modules that deal with PKI, parameters such as the following have been observed:
$enable_pki = true
Does this turn PKI on/off, turn PKI management on/off, turn the SIMP-specific PKI system on/off (see: The New Layout for all SIMP Modules)?
$use_simp_pki
= true
Okay, this looks like it explicitly means "Use SIMP's PKI system (e.g., FakeCA, keydist/, pki::copy)"
$cert_source
= '/absolute/path/to/dir'
Suggested Alternative Name: $pki_cert_dir = '/same/as/cert_source/w/a/better/name'
Individual cert files (names differ between examples, but basically):
$pki_cert_file = "${::modulename::cert_source}/public/${::fqdn}.pub"
$pki_key_file = "${::modulename::cert_source}/private/${::fqdn}.pem"
$pki_ca_file = "${::modulename::cert_source}/cacerts/cacerts.pem"
NOTE: The fact $::fqdn
is used instead of $::trusted['certname']
because masterless environments such as "puppet apply"
must be honored.
$enable_ssl = true # Turn SSL on or off
$validate_ssl = true # vsftpd setting
$enable_pki (bool)
$manage_pki (bool or see below)
ASSETS: What resources does the module need to know about to integrate PKI?
PKI assets = key, cert, cacert
file-based: x509+RSA files
simp-pki module's pki::copy
from FakeCA
simp-beaker-helpers gem's pki_copy_to
function.
IMPORTANT: Independent file delivery mechanism
The files get there, but in a way SIMP (and possibly Puppet) doesn't manage
probably no need to do anything
QUESTION: Is it reasonable to always expect PKI cert/key/cacert to be present in the same directory structure as pki::copy?
PKI stored in LDAP
PKI stored in TPM
DISTRO: What PKI asset distribution methods should SIMP manage?
SIMP has the pki::copy function, which copies the host's cert+key+cacert into a local directory
the structure: HOST_PKI_DIR/
cacerts/cacerts.pem
public/fdqn.pub
private/fdqn.pem
$use_simp_pki (bool)
suggested param: $use_simp_pki or $manage_pki
(if "Stroolean")
$use_simp_pki
, to turn on pki::copy
false
or a String that determines the source (e.g., 'simp
',