I have a puppet client with puppet (both versions 0.23.2 and 0.24.1 have the same error) and puppetmaster(s) (again version 0.24.1 and 0.23.2) where signing its certificate fails:
on the client I get:
debug: Calling puppetca.getcert
/usr/lib/ruby/1.8/puppet/network/xmlrpc/client.rb:55:in `getcert'
/usr/lib/ruby/1.8/puppet/network/client/ca.rb:26:in `request_cert'
/usr/sbin/puppetd:346
/usr/lib/ruby/1.8/puppet/network/client/ca.rb:31:in `request_cert': Certificate retrieval failed: nested asn1 error (Puppet::Error)
from /usr/sbin/puppetd:346
and on the server (version 0.23.2)
notice: Allowing unauthenticated client FQDN (IP) access to puppetca.getcert
info: Signing certificate for FQDN
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:28:in `initialize'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:28:in `new'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:28:in `init'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:27:in `glob'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:27:in `init'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:16:in `add'
/usr/lib/ruby/1.8/puppet/util/config.rb:676:in `write'
/usr/lib/ruby/1.8/puppet/util/config.rb:675:in `open'
/usr/lib/ruby/1.8/puppet/util/config.rb:675:in `write'
/usr/lib/ruby/1.8/puppet/util/suidmanager.rb:33:in `asuser'
/usr/lib/ruby/1.8/puppet/util/config.rb:666:in `write'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:14:in `add'
/usr/lib/ruby/1.8/puppet/sslcertificates/ca.rb:289:in `storeclientcert'
/usr/lib/ruby/1.8/puppet/sslcertificates/ca.rb:258:in `sign'
/usr/lib/ruby/1.8/puppet/network/handler/ca.rb:120:in `getcert'
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `to_proc'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `call'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `protect_service'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:85:in `setup_processor'
/usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `call'
/usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `dispatch'
/usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `each'
/usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `dispatch'
/usr/lib/ruby/1.8/xmlrpc/server.rb:366:in `call_method'
/usr/lib/ruby/1.8/xmlrpc/server.rb:378:in `handle'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:44:in `process'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/1.8/puppet.rb:334:in `start'
/usr/lib/ruby/1.8/puppet.rb:185:in `newthread'
/usr/lib/ruby/1.8/puppet.rb:184:in `initialize'
/usr/lib/ruby/1.8/puppet.rb:184:in `new'
/usr/lib/ruby/1.8/puppet.rb:184:in `newthread'
/usr/lib/ruby/1.8/puppet.rb:332:in `start'
/usr/lib/ruby/1.8/puppet.rb:331:in `each'
/usr/lib/ruby/1.8/puppet.rb:331:in `start'
/usr/sbin/puppetmasterd:298
err: Could not call: nested asn1 error
with puppetmaster version 0.24.1 I get:
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:25:in `initialize'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:25:in `new'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:25:in `init'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:24:in `glob'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:24:in `init'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:15:in `add'
/usr/lib/ruby/1.8/puppet/util/settings.rb:766:in `write'
/usr/lib/ruby/1.8/puppet/util/settings.rb:765:in `open'
/usr/lib/ruby/1.8/puppet/util/settings.rb:765:in `write'
/usr/lib/ruby/1.8/puppet/util/suidmanager.rb:25:in `asuser'
/usr/lib/ruby/1.8/puppet/util/settings.rb:756:in `write'
/usr/lib/ruby/1.8/puppet/sslcertificates/inventory.rb:14:in `add'
/usr/lib/ruby/1.8/puppet/sslcertificates/ca.rb:331:in `storeclientcert'
/usr/lib/ruby/1.8/puppet/sslcertificates/ca.rb:300:in `sign'
/usr/lib/ruby/1.8/puppet/network/handler/ca.rb:120:in `getcert'
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `to_proc'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `call'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `protect_service'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:85:in `setup_processor'
/usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `call'
/usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `dispatch'
/usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `each'
/usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `dispatch'
/usr/lib/ruby/1.8/xmlrpc/server.rb:366:in `call_method'
/usr/lib/ruby/1.8/xmlrpc/server.rb:378:in `handle'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/processor.rb:44:in `process'
/usr/lib/ruby/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/1.8/puppet.rb:336:in `start'
/usr/lib/ruby/1.8/puppet.rb:187:in `newthread'
/usr/lib/ruby/1.8/puppet.rb:186:in `initialize'
/usr/lib/ruby/1.8/puppet.rb:186:in `new'
/usr/lib/ruby/1.8/puppet.rb:186:in `newthread'
/usr/lib/ruby/1.8/puppet.rb:334:in `start'
/usr/lib/ruby/1.8/puppet.rb:333:in `each'
/usr/lib/ruby/1.8/puppet.rb:333:in `start'
/usr/sbin/puppetmasterd:281
err: Could not call: nested asn1 error
I had ssl libraries for ruby and openssl from unstable, donwgraded both the server and the client in question to debian-everything-stable the problem did not change at all.
Additionally I have a host which runs puppetmasterd 0.23.2 with mongrel, this produces the same error. The server from above does not run with mongrel.
All other hosts (which already have certificates) work fine, I already deleted the signed certificates for the client, I also deleted all of "ssl/*" on the client and made sure that it uses the proper directories for its ssl-stuff (both on the server and the client).
Can someone give me a hint, where the problem might lie?
Thanks,
udo.