Skip to content

Commit f399b59

Browse files
authored
Merge pull request #54742 from EricPonvelle/OSDOCS-4816_Certificate-Renewal-Instructions
OSDOCS-4816: Added certificate renewal instructions
2 parents f352110 + ea40baf commit f399b59

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

applications/deployments/osd-config-custom-domains-applications.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ toc::[]
99
You can configure a custom domain for your applications. Custom domains are specific wildcard domains that can be used with {product-title} applications.
1010

1111
include::modules/osd-applications-config-custom-domains.adoc[leveloffset=+1]
12+
include::modules/osd-applications-renew-custom-domains.adoc[leveloffset=+1]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Module included in the following assemblies for OSD and ROSA:
2+
//
3+
// * applications/deployments/osd-config-custom-domains-applications.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="osd-applications-renew-custom-domains_{context}"]
7+
= Renewing a certificate for custom domains
8+
9+
You can renew certificates with the Custom Domains Operator (CDO) by using the `oc` CLI tool.
10+
11+
//s a customer of OSD/ROSA, I would like instructions on how to renew certificates with Custom Domains Operator (CDO).
12+
.Prerequisites
13+
* You have the latest version `oc` CLI tool installed.
14+
15+
.Procedure
16+
. Create new secret
17+
+
18+
[source,terminal]
19+
----
20+
$ oc create secret tls <secret-new> --cert=fullchain.pem --key=privkey.pem -n <my_project>
21+
----
22+
23+
. Patch CustomDomain CR
24+
+
25+
[source,terminal]
26+
----
27+
$ oc patch customdomain <company_name> --type='merge' -p '{"spec":{"certificate":{"name":"<secret-new>"}}}'
28+
----
29+
30+
. Delete old secret
31+
+
32+
[source,terminal]
33+
----
34+
$ oc delete secret <secret-old> -n <my_project>
35+
----

0 commit comments

Comments
 (0)