Skip to content

Instantly share code, notes, and snippets.

@Tahvok
Tahvok / gist:c3cf55e7bec3d205167a
Created December 17, 2014 16:56
puppet certificate from master does not match
Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key.
Certificate fingerprint: {fingerprint}
To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate.
On the master:
puppet cert clean domain.com
On the agent:
1a. On most platforms: find /var/lib/puppet/ssl -name domain.pem -delete
1b. On Windows: del "/var/lib/puppet/ssl/domain.pem" /f
2. puppet agent -t
<?php
ini_set("log_errors", 1);
ini_set("error_log", "php.log");
error_reporting(E_ALL);
$postdata = file_get_contents("php://input");
try{
if ( $postdata ){
if( $hookArray = json_decode( $postdata ) ){