bastelfreak
05/09/2023, 5:50 PMerik
05/09/2023, 6:02 PMX509v3 extensions:
1.3.6.1.4.1.34380.1.3.13:
..pe_compiler
erik
05/09/2023, 6:19 PM#!/bin/bash
FQDN=$(hostname).$(dnsdomainname)
CERTPATH=/etc/puppetlabs/puppet/ssl/certs/$FQDN.pem
if openssl x509 -in $CERTPATH -text | grep -q "pe_compiler"; then
echo "is compiler"
else
echo "is not compiler"
fi
vchepkov
05/09/2023, 6:19 PMvchepkov
05/09/2023, 6:21 PMCERTPATH=$(puppet config print hostcert)
erik
05/09/2023, 6:21 PMerik
05/09/2023, 6:21 PMvchepkov
05/09/2023, 6:23 PMDr Bunsen Honeydew
05/09/2023, 6:23 PMjesse-certificate_extensions_facts
module at https://forge.puppet.com/jesse/certificate_extensions_facts?src=slack&channel=puppet-enterprisevchepkov
05/09/2023, 6:25 PM# facter -p certificate_extension_1_3_6_1_4_1_34380_1_1_9812
puppet/server
bastelfreak
05/11/2023, 3:09 PMbastelfreak
05/11/2023, 3:09 PMSlackbot
05/11/2023, 3:09 PMSlackbot
05/12/2023, 7:59 AMSlackbot
05/12/2023, 4:57 PMSlackbot
05/12/2023, 4:57 PMSlackbot
05/15/2023, 9:30 AMSlackbot
05/16/2023, 2:52 PMSlackbot
05/17/2023, 10:28 AMSlackbot
05/18/2023, 7:36 PMSlackbot
05/18/2023, 8:20 PMMossman
05/21/2023, 10:29 PMpuppet_admin_certs
means in this part of the docs?
https://www.puppet.com/docs/pe/2021.7/config_puppetserver.html#add_certificates_to_the_puppet_admin_certificate_allowlistSlackbot
05/22/2023, 9:28 AMdaloran
05/22/2023, 12:34 PMMoe
05/22/2023, 7:56 PMroot@puppet-primary:[~] #: puppetserver ca clean --certname puppet-primary.home.arpa
Certificate for puppet-primary.home.arpa has been revoked
Cleaned files related to puppet-primary.home.arpa
root@puppet-primary:[~] #:
root@puppet-primary:[~] #: puppet ssl clean
Error: Could not run: Failed to connect to the CA to determine if certificate puppet-primary.home.arpa has been cleaned
Wrapped exception:
certificate verify failed [certificate revoked for CN=puppet-primary.home.arpa]
root@puppet-primary:[~] #:
This makes it seem that I need to manually remove the files in /etc/puppetlabs/puppet/ssl/
. (Also the docs should say pe-puppetserver
instead of puppetserver
but this something I might bring up with support.vchepkov
05/22/2023, 8:02 PMvchepkov
05/22/2023, 8:03 PMMoe
05/22/2023, 8:18 PMMoe
05/22/2023, 8:18 PMMoe
05/22/2023, 8:57 PM