title: Puppet: Server hostname did not match server certificate
body: <p>I installed Puppet Enterprise on two virtual machines (one master and one node). When I try to run my agent manually with puppet agent -t i get the error </p>
  
  <pre><code>Server hostname '192.168....' did not match server certificate; expected one of host-192-168-.....localdomain. 
  </code></pre>
  
  <p>If i run this by adding <code>--server host-192-168.....localdomain</code> it works, but this way i can do this manually and after its own <code>runInterval</code> it doesn't work so on my puppet console it says it is Unresponsive. I guess this is because on its own it gets the error i mentioned earlier so my master can't receive any reports from this node. </p>
  
  <p>Can someone please help me with this? How can i make so my node's agent is contacting the master with the proper server certificate name?</p>
  
  <p>puppet.conf from node:
  <code></p>
  
  <pre><code>[main]
  
  vardir = ...
  logdir = ...
  rundir = ...
  basemodulepath = ...
  user = ...
  group = ...
  archive_files = ...
  
  [agent]
  
  report = ...
  classfile = ...
  localconfig = ...
  graph = ...
  pluginsync = ...
  environment = ...
  server = 192.168.10.39
  certname = 192.168.10.40
  noop = true
  runinterval = 1800
  </code></pre>
  
  <p></code></p>
  
  <p>If i put server = host-... (in main) nothing changes. I think I can't change the server from [agent] part, because there should be the master ip (i believe) ...</p>
  
  <p>I tried what was on that link and now my puppet agent -t doesn't do anything anymore on my node. For better understandig, i'm posting my puppet.conf from master:</p>
  
  <p><code></p>
  
  <pre><code>[main]
  
  certname = host-192-168-10-39.localdomain
  vardir = /var/opt/lib/pe-puppet
  logdir = /var/log/pe-puppet
  rundir = /var/run/pe-puppet
  basemodulepath = /opt/alu/deploy/puppet/modules:/etc/puppetlabs/puppet....
  environmentpath = /opt/alu/deploy/puppet/environments
  server = 192.168.10.39
  user = pe-puppet
  group = pe-puppet
  archive_files = true
  archive_files_server = 192.168.10.39
  module_groups = base+pe_only
  dns_alt_names = puppet
  
  [agent]
  
  report = true
  classfile = $vardir/classes.txt
  localconfig = $vardir/localconfig
  graph = true
  pluginsync = true
  environment = production
  noop = true
  runinterval = 1800
  
  [master]
  
  node_terminus = classfier
  ca_server = host-192-168-10-39.localdomain
  reports = console,puppetdb
  storeconfigs = true
  storeconfigs_backend = puppetdb
  certname = 192-168-10-39.localdomain
  server = 192.168.10.39
  always_cache_features = true
  default_manifest = /opt/alu/deploy/puppet/manifests/default.pp
  </code></pre>
  
  <p></code></p>
  
  <p>Error from puppet agent -t : <a href="http://i62.tinypic.com/34ijlmu.png" rel="nofollow">http://i62.tinypic.com/34ijlmu.png</a></p>