Hi,
I have successfully installed Choria and it was working until we had to update puppet certificate.
After puppet certificate update, Choria is giving SSL error:
---------------------------------------------------------------------------------------------
mco ping
error 2019/10/21 12:15:54: natswrapper.rb:145:in `block in start' Error in NATS connection: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
error 2019/10/21 12:15:56: natswrapper.rb:145:in `block in start' Error in NATS connection: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
error 2019/10/21 12:15:56: client.rb:39:in `rescue in initialize' Timeout occured while trying to connect to middleware
The ping application failed to run, use -v for full error backtrace details: execution expired
warn 2019/10/21 12:15:56: natswrapper.rb:138:in `block in start' Disconnected from NATS: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
--------------------------------------------------------------------------------------------
My understanding is that Choria uses puppet certificates, looks like NATs certificates are not same as puppet cert anymore after the puppet cert update.
Wondering where do I need to update this cert to make choria working again?
I have looked at "mco choria show_config", it says SSL setup is valid.
----------------------------------------------------------------------------------------------------------
mco choria show_config
Active Choria configuration:
The active configuration used in Choria comes from using Puppet AIO defaults, querying SRV
records and reading configuration files. The below information shows the completely resolved
configuration that will be used when running MCollective commands
MCollective related:
MCollective Version: 2.12.4
Choria Version: 0.16.1
Client Config File: /etc/puppetlabs/mcollective/client.cfg
Active Config File: /etc/puppetlabs/mcollective/client.cfg
Plugin Config Dir: /etc/puppetlabs/mcollective/plugin.d
Using SRV Records: true
Federated: false
SRV Domain: <removed>
Middleware Servers: puppet:4222
Puppet related:
Puppet Server: puppet:8140
PuppetCA Server: puppet:8140
PuppetDB Server: puppet:8081
Discovery Proxy: not using a proxy
Facter Command: /opt/puppetlabs/bin/facter
Facter Domain: <removed>
SSL setup:
Valid SSL Setup: yes
Security Provider: puppet
Certname: appadmin.mcollective
SSL Directory: /home/appadmin/.puppetlabs/etc/puppet/ssl (found)
Client Public Cert: /home/appadmin/.puppetlabs/etc/puppet/ssl/certs/appadmin.mcollective.pem (found)
Client Private Key: /home/appadmin/.puppetlabs/etc/puppet/ssl/private_keys/appadmin.mcollective.pem (found)
CA Path: /home/appadmin/.puppetlabs/etc/puppet/ssl/certs/ca.pem (found)
CSR Path: /home/appadmin/.puppetlabs/etc/puppet/ssl/certificate_requests/appadmin.mcollective.pem (found)
Public Cert CN: appadmin.mcollective (match)
Active Choria configuration settings as found in configuration files:
No custom Choria settings found in your configuration files
--------------------------------------------------------------------------------------------------------------------------------------------------------------