"An error in the OpenSSL library: no start line, PEM lib" executing PuppetDB CLI

asked 2017-02-02 14:35:41 -0600

updated 2017-02-06 08:10:15 -0600

DarylW gravatar image

I'm trying to configure PuppetDB CLI and got the error "An error in the OpenSSL library: no start line, PEM lib".

I have my PuppetDB and Puppetserver on one server.

File /etc/puppetlabs/client-tools/puppetdb.conf :

{
  "puppetdb": {
    "server_urls": "https://host.domain.com:8081",
    "cacert": "/etc/puppetlabs/puppet/ssl/certs/ca.pem",
    "cert": "/etc/puppetlabs/puppet/ssl/certs/host.domain.com.pem",
    "key": "/etc/puppetlabs/puppet/ssl/public_keys/host.domain.com.pem"
  }
}

Actual Error:

[root@host ~]# puppet query 'nodes [ certname ]{ limit 1 }'
Error opening certificate files: An error in the OpenSSL library: no start line, PEM lib
[root@host ~]#

Thanks in advance.

edit retag flag offensive close merge delete