Forge Home


Puppet library to do RSA SSL based en/decryption


10,031 latest version

3.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.2 (latest)
  • 0.0.1
released Jul 3rd 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fiddyspence-certencryption', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fiddyspence-certencryption
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fiddyspence-certencryption --version 0.0.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



fiddyspence/certencryption — version 0.0.2 Jul 3rd 2013

Puppet::Util::Certencryption library to use SSL certs to encrypt/decrypt data

Library to do RSA based encryption for Puppet

There are 4 methods:

  • encrypt(the rsa key, the file)
  • decrypt(the rsa key, the file)
  • encryptstring(the rsa key, the string)
  • decryptstring(the rsa key, the string)

Also included are a parser function (decrypt()) and a fact demonstrating how to pass data around

Sample Puppet code

class foo {
  $foovar = decrypt('/etc/foo/privatekey.pem',$::theencryptedfact_or_data')
  notify { $foovar: }

Sample ruby code

require 'puppet'
require 'puppet/util/certencryption'
moo = a.encryptstring('/etc/puppetlabs/puppet/ssl/private_keys/','moo')
puts moo
clear = a.decryptstring('/etc/puppetlabs/puppet/ssl/private_keys/',moo)
puts clear