Unable to get PuppetDB to work. SSL hostname mismatch
I am trying to configure PuppetDB but have an issue I cant seem to resolve. I followed:
PuppetDB is running, but I get this error in puppetmaster.log:
2016-01-08 22:22:29,414 WARN [qtp1989499399-63] [puppet-server] Puppet Specification of server and port in puppetdb.conf is deprecated. Use the setting server_urls. 2016-01-08 22:22:30,149 ERROR [qtp1989499399-63] [c.p.h.c.i.PersistentSyncHttpClient] Error executing http request javax.net.ssl.SSLException: hostname in certificate didn't match: <puppetdb> != <puppet.X.net> OR <puppet.X.nl> OR <puppet.X.net> OR <puppet.X.net>
I am not entirely sure if this means that PuppetDB on 8081 has "puppetdb" as CN or that Puppet is looking for "puppetdb" as CN, but finds other names. it is unclear to me why i get "puppetdb" as hostname in the firstname. Because my puppetdb.conf is as following:
[main] server_urls = https://puppet.X.net:8081
Again, i entered the correct hostname here (puppet instead of puppetdb). And I am also using "serverurls" which makes me wonder why I get the warning "specification of server and port in pupetdb.conf is deprecated. use the setting serverurls.
My issue is exactly the same as discussed here (but without a solution):
And again here:
I hope someone can help me resolve this issue.