diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2016-01-08 11:13:16 +0000 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2016-01-08 11:13:16 +0000 |
commit | f875770245d6ce205dbf97f109d323a473d3e249 (patch) | |
tree | f0803545baa4ecab654d7f7347754f4b4cdd5621 /README.markdown | |
parent | 9cce93054aaeafeddf38fa48d22d5f123b94adff (diff) | |
parent | 41f9319bbd96547f9c2226524918e4b748527048 (diff) | |
download | puppet-stdlib-f875770245d6ce205dbf97f109d323a473d3e249.tar.gz puppet-stdlib-f875770245d6ce205dbf97f109d323a473d3e249.tar.bz2 |
Merge pull request #552 from mattbostock/add_x509_rsa_key_pair
Add a function to validate an x509 RSA key pair
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 3150e44..559a6a0 100644 --- a/README.markdown +++ b/README.markdown @@ -1214,6 +1214,22 @@ Instead, use: *Type*: statement. +#### `validate_x509_rsa_key_pair` + +Validates a PEM-formatted X.509 certificate and private key using OpenSSL. +Verifies that the certficate's signature was created from the supplied key. + +Fails catalog compilation if any value fails this check. + +Takes two arguments, the first argument must be a X.509 certificate and the +second must be an RSA private key: + + ~~~ + validate_x509_rsa_key_pair($cert, $key) + ~~~ + +*Type*: statement. + #### `values` Returns the values of a given hash. For example, given `$hash = {'a'=1, 'b'=2, 'c'=3} values($hash)` returns [1,2,3]. |