Skip to content

Commit cadad26

Browse files
committed
renew custom ca too
1 parent 052b48e commit cadad26

6 files changed

Lines changed: 76 additions & 23 deletions

guides/common/assembly_renewing-certificates.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ include::modules/proc_renewing-self-signed-certificates-on-server.adoc[leveloffs
66
include::modules/proc_renewing-self-signed-ca-certificates.adoc[leveloffset=+1]
77
endif::[]
88

9-
include::modules/proc_planning-for-self-signed-ca-certificate-renewal.adoc[leveloffset=+1]
10-
119
include::modules/proc_renewing-a-custom-ssl-certificate-on-server.adoc[leveloffset=+1]
1210

11+
include::modules/proc_renewing-a-custom-server-ca-certificate.adoc[leveloffset=+1]
12+
1313
ifndef::containerized[]
1414
include::modules/proc_renewing-a-custom-ssl-certificate-on-smart-proxy.adoc[leveloffset=+1]
1515
endif::[]

guides/common/modules/con_refreshing-the-self-signed-ca-certificate-on-hosts.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
When you change the CA certificate on your {ProjectServer}, you must refresh the CA certificate on your hosts.
88

99
Ensure that you use a temporary dual CA certificate file for uninterrupted operation.
10-
For more information, see {AdministeringDocURL}planning-for-self-signed-ca-certificate-renewal[Planning for self-signed CA certificate renewal] in _{AdministeringDocTitle}_.
10+
For more information, see {AdministeringDocURL}renewing-a-custom-server-ca-certificate[Renewing a custom server CA certificate] in _{AdministeringDocTitle}_.
1111

1212
If you have already changed the CA certificate on {ProjectServer} without using the temporary dual CA certificate file, you must refresh the certificate on hosts manually because the scripted variant will not recognize {ProjectServer}.
1313

guides/common/modules/proc_planning-for-self-signed-ca-certificate-renewal.adoc

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="renewing-a-custom-server-ca-certificate"]
4+
= Renewing a custom server CA certificate
5+
6+
[role="_abstract"]
7+
If you need to update the certification authority (CA) certificate that signed your {ProjectServer} and {SmartProxyServers} certificates, add the new CA certificate and use a temporary dual CA certificate file to retain the HTTPS connections to your {ProjectServer} during the renewal.
8+
9+
.Procedure
10+
. Add the new SSL certificate to the CA certificate file on {ProjectServer} and keep the old SSL certificate.
11+
+
12+
[options="nowrap", subs="+quotes,attributes"]
13+
----
14+
# cat _/root/{project-context}_cert/old_ca_cert_bundle.pem_ _/root/{project-context}_cert/new_ca_cert_bundle.pem_ > _/root/{project-context}_cert/ca_cert_bundle.pem_
15+
----
16+
. Renew the certificates on {ProjectServer}.
17+
+
18+
[options="nowrap" subs="+quotes,attributes"]
19+
ifdef::containerized[]
20+
----
21+
# {foremanctl} deploy \
22+
--certificate-source custom_server \
23+
--certificate-server-certificate "_/root/{project-context}_cert/{project-context}_cert.pem_" \
24+
--certificate-server-key "_/root/{project-context}_cert/{project-context}_cert_key.pem_" \
25+
--certificate-server-ca-certificate "_/root/{project-context}_cert/ca_cert_bundle.pem_"
26+
----
27+
endif::[]
28+
ifndef::containerized[]
29+
----
30+
# {installer-scenario} \
31+
--certs-server-cert "/root/_{project-context}_cert/{project-context}_cert.pem_" \
32+
--certs-server-key "/root/_{project-context}_cert/{project-context}_cert_key.pem_" \
33+
--certs-server-ca-cert "/root/_{project-context}_cert/ca_cert_bundle.pem_" \
34+
--certs-update-server \
35+
--certs-update-server-ca
36+
----
37+
endif::[]
38+
. Renew the certificates on any {SmartProxyServers}.
39+
. Deploy the dual CA certificate on hosts.
40+
. Remove the old certificate from the CA certificates file on {ProjectServer}, so the CA certificate file contains only the new SSL certificate.
41+
+
42+
[options="nowrap", subs="+quotes,attributes"]
43+
----
44+
# cat _/root/{project-context}_cert/new_ca_cert_bundle.pem_ > _/root/{project-context}_cert/ca_cert_bundle.pem_
45+
----
46+
. Renew the certificates on {ProjectServer} and any {SmartProxyServers}.
47+
+
48+
[options="nowrap" subs="+quotes,attributes"]
49+
ifdef::containerized[]
50+
----
51+
# {foremanctl} deploy \
52+
--certificate-source custom_server \
53+
--certificate-server-certificate "_/root/{project-context}_cert/{project-context}_cert.pem_" \
54+
--certificate-server-key "_/root/{project-context}_cert/{project-context}_cert_key.pem_" \
55+
--certificate-server-ca-certificate "_/root/{project-context}_cert/ca_cert_bundle.pem_"
56+
----
57+
endif::[]
58+
ifndef::containerized[]
59+
----
60+
# {installer-scenario} \
61+
--certs-server-cert "/root/_{project-context}_cert/{project-context}_cert.pem_" \
62+
--certs-server-key "/root/_{project-context}_cert/{project-context}_cert_key.pem_" \
63+
--certs-server-ca-cert "/root/_{project-context}_cert/ca_cert_bundle.pem_" \
64+
--certs-update-server \
65+
--certs-update-server-ca
66+
----
67+
endif::[]
68+
. Deploy the new CA certificate on hosts.
69+
70+
.Additional resources
71+
* {ManagingHostsDocURL}refreshing-the-self-signed-ca-certificate-on-hosts[Refreshing the self-signed CA certificate on hosts in _{ManagingHostsDocTitle}_]

guides/common/modules/proc_renewing-self-signed-certificates-on-server.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ifndef::containerized[]
1111
[NOTE]
1212
====
1313
To renew the certificate authority (CA) certificate, follow a separate process to avoid disrupting connections to existing hosts.
14-
For more information, see xref:planning-for-self-signed-ca-certificate-renewal[].
14+
For more information, see xref:renewing-a-custom-server-ca-certificate[].
1515
====
1616
endif::[]
1717

guides/common/modules/snip_prerequisites-deploying-ca-cert-rex.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
* Remote execution is enabled on the host.
44
* The CA certificate has been changed on {ProjectServer}.
5-
For more information, see {AdministeringDocURL}planning-for-self-signed-ca-certificate-renewal[Planning for self-signed CA certificate renewal] in _{AdministeringDocTitle}_.
5+
For more information, see {AdministeringDocURL}renewing-a-custom-server-ca-certificate[Renewing a custom server CA certificate] in _{AdministeringDocTitle}_.

0 commit comments

Comments
 (0)