Skip to content

Commit 268a7ad

Browse files
Lennonkaapinnick
andauthored
Fix command to generate Puppetserver CA certs for load balancer (#3398)
Co-authored-by: Avital Pinnick <[email protected]>
1 parent 5a298ae commit 268a7ad

2 files changed

+30
-16
lines changed

guides/common/modules/proc_configuring-smart-proxy-server-with-custom-ssl-certificates-to-generate-and-sign-puppet-certificates.adoc

+23-9
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,31 @@ Retain a copy of the example `{foreman-installer}` command from the output for i
5656
--puppet-server true \
5757
--puppet-server-ca "true"
5858
----
59-
. On {SmartProxyServer}, generate Puppet certificates for all other {SmartProxies} that you configure for load balancing, except this first system where you configure Puppet certificates signing:
59+
. On {SmartProxyServer} that is the Puppetserver Certificate Authority, stop the Puppet server:
6060
+
61-
[options="nowrap", subs="+quotes,attributes"]
61+
[options="nowrap", subs="+quotes,verbatim,attributes"]
62+
----
63+
# systemctl stop puppetserver
64+
----
65+
. Generate Puppet certificates for all other {SmartProxyServers} that you configure for load balancing, except the system where you first configured Puppet certificate signing:
66+
+
67+
[options="nowrap", subs="+quotes,verbatim,attributes"]
6268
----
63-
# puppet cert generate _{smartproxy-example-com}_ \
64-
--dns_alt_names=_{loadbalancer-example-com}_
69+
# puppetserver ca generate \
70+
--ca-client \
71+
--certname _{smartproxy-example-com}_ \
72+
--subject-alt-names _{loadbalancer-example-com}_
6573
----
6674
+
67-
This command creates the following files on the Puppet certificate signing {SmartProxyServer} instance:
75+
This command creates the following files:
6876
+
69-
* `/etc/puppetlabs/puppet/ssl/certs/ca.pem`
70-
* `/etc/puppetlabs/puppet/ssl/certs/{smartproxy-example-com}.pem`
71-
* `/etc/puppetlabs/puppet/ssl/private_keys/{smartproxy-example-com}.pem`
72-
* `/etc/puppetlabs/puppet/ssl/public_keys/{smartproxy-example-com}.pem`
77+
* `/etc/puppetlabs/puppet/ssl/certs/_{smartproxy-example-com}_.pem`
78+
* `/etc/puppetlabs/puppet/ssl/private_keys/_{smartproxy-example-com}_.pem`
79+
* `/etc/puppetlabs/puppet/ssl/public_keys/_{smartproxy-example-com}_.pem`
80+
* `/etc/puppetlabs/puppetserver/ca/signed/_{smartproxy-example-com}_.pem`
81+
. Start the Puppet server:
82+
+
83+
[options="nowrap", subs="+quotes,verbatim,attributes"]
84+
----
85+
# systemctl start puppetserver
86+
----

guides/common/modules/proc_configuring-smart-proxy-server-with-default-ssl-certificates-to-generate-and-sign-puppet-certificates.adoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ Retain a copy of the example `{foreman-installer}` command that is output by the
5353
--puppet-server true \
5454
--puppet-server-ca "true"
5555
----
56-
. On {SmartProxyServer}, stop the Puppet server:
56+
. On {SmartProxyServer} that is the Puppetserver Certificate Authority, stop the Puppet server:
5757
+
5858
[options="nowrap", subs="+quotes,verbatim,attributes"]
5959
----
60-
# puppet resource service puppetserver ensure=stopped
60+
# systemctl stop puppetserver
6161
----
62-
. Generate Puppet certificates for all other {SmartProxyServers} that you configure for load balancing, except the first system where you configure Puppet certificates signing:
62+
. Generate Puppet certificates for all other {SmartProxyServers} that you configure for load balancing, except the system where you first configured Puppet certificate signing:
6363
+
6464
[options="nowrap", subs="+quotes,verbatim,attributes"]
6565
----
@@ -69,15 +69,15 @@ Retain a copy of the example `{foreman-installer}` command that is output by the
6969
--subject-alt-names _{loadbalancer-example-com}_
7070
----
7171
+
72-
This command creates the following files on the system where you configure {SmartProxyServer} to sign Puppet certificates:
72+
This command creates the following files:
7373
+
7474
* `/etc/puppetlabs/puppet/ssl/certs/_{smartproxy-example-com}_.pem`
75-
* `/etc/puppetlabs/puppet/ssl/certs/ca.pem`
7675
* `/etc/puppetlabs/puppet/ssl/private_keys/_{smartproxy-example-com}_.pem`
7776
* `/etc/puppetlabs/puppet/ssl/public_keys/_{smartproxy-example-com}_.pem`
78-
. Resume the Puppet server:
77+
* `/etc/puppetlabs/puppetserver/ca/signed/_{smartproxy-example-com}_.pem`
78+
. Start the Puppet server:
7979
+
8080
[options="nowrap", subs="+quotes,verbatim,attributes"]
8181
----
82-
# puppet resource service puppetserver ensure=running
82+
# systemctl start puppetserver
8383
----

0 commit comments

Comments
 (0)