title: Puppet: Could not request certificate
body: <p>When i start puppet agent i get this error</p>
  
  <pre><code>Could not request certificate: Could not intern from text/plain: Certname "puppet ca: localhost/localdomain" must not contain unprintable or non-ASCII characters
  </code></pre>
  
  <p>Both puppet master and agent version are 3.8.7</p>
  
  <p>In both master and agent /etc/hosts file i added these lines:</p>
  
  <pre><code>10.11.22.166 pclient
  10.11.22.173 pmaster
  </code></pre>
  
  <p>I can ping both pclient and pmaster from each other.</p>
  
  <p>In puppet master puppet.conf i added this line:</p>
  
  <pre><code>[master]
  certname = pmaster
  </code></pre>
  
  <p>In puppet agent puppet.conf file i added this line in [main] block:</p>
  
  <pre><code>server = pmaster
  </code></pre>
  
  <p>Enabled 8140 port:</p>
  
  <pre><code>iptables -I INPUT -p tcp -m tcp --dport 8140 -j ACCEPT
  </code></pre>
  
  <p>Please help me, I don't know what am i doing wrong.</p>