Skip to content

Instantly share code, notes, and snippets.

@raphink
Created May 5, 2020 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphink/253eef9ae359f46ed0d873223e3474a7 to your computer and use it in GitHub Desktop.
Save raphink/253eef9ae359f46ed0d873223e3474a7 to your computer and use it in GitHub Desktop.
require 'puppet'
Puppet.initialize_settings
host = Puppet::SSL::Host.new()
host.generate
sm = Puppet::SSL::StateMachine.new(waitforcert: 10)
sm.ensure_client_certificate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment