Jira (PUP-9733) CRL not created in CA, auto-downloaded window agent ca missing chain

4 views
Skip to first unread message

Christopher Morley (JIRA)

unread,
Jun 7, 2019, 3:22:04 PM6/7/19
to puppe...@googlegroups.com
Christopher Morley created an issue
 
Puppet / Bug PUP-9733
CRL not created in CA, auto-downloaded window agent ca missing chain
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2019/06/07 12:21 PM
Environment:

Ubuntu LTS 18.04

Windows Agent x64 latest (as of 06/2019)

Priority: Normal Normal
Reporter: Christopher Morley

Hi all, i have followed a repo install on Ubuntu.

When testing the agent, i was getting the below: 

{{C:\Windows\system32>puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Info: Retrieving pluginfacts
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Info: Retrieving plugin
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get issuer certificate for /CN=Puppet CA: puppet.mydomain.com]}}

I have troubleshooted to the following:

1) There is no CRL created in CA

2) Auto-downloaded window agent has a ca.pem, but this contains one cert only... when downloading from the puppet master shows https://puppet.mydomain.com:8140/puppet-ca/v1/certificate/ca two chained certificates in the same file.

3) O the agent leaving everything as is (with the auto downloaded ca.pem that only contans the single cert), and testing the chain with openssl throws an error:

C:\ProgramData\PuppetLabs\puppet\etc\ssl\certs>openssl verify -CAfile ca.pem home-hv1.pem
home-hv1.pem: CN = Puppet CA: puppet.mydomain.com
error 2 at 1 depth lookup:unable to get issuer certificate

3) On the agent, replacing C:\ProgramData\PuppetLabs\puppet\etc\ssl\certs with the downloaded (from step 2) and renaming to ca.pem, then allows openssl to pass:

C:\ProgramData\PuppetLabs\puppet\etc\ssl\certs>openssl verify -CAfile ca.pem home-hv1.pem
home-hv1.pem: OK 

4) Trying to run with the above causes a failure

 

{{C:\ProgramData\PuppetLabs\puppet\etc\ssl\certs>puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get certificate CRL for /CN=Puppet CA: puppet.mydomain.com]}}

5) Setting the agent config

{{[main]
server=puppet.mydomain.com}}

autoflush=true

manage_internal_file_permissions=false

certificate_revocation = false

 

Then allowed the agent test to run

 

{{Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for home-hv1
Info: Applying configuration version '1559933691'}}

{{}}

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Kris Bosland (JIRA)

unread,
Jun 7, 2019, 5:57:02 PM6/7/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages