Skip to content

Commit 75bc815

Browse files
committed
OSDOCS-8806: cleaning and recreating custom certificates
1 parent 479783f commit 75bc815

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

microshift_configuring/microshift-custom-ca.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ include::modules/microshift-custom-ca-reserved-names.adoc[leveloffset=+1]
1616

1717
include::modules/microshift-custom-ca-troubleshooting.adoc[leveloffset=+1]
1818

19+
include::modules/microshift-custom-ca-cert-cleaning.adoc[leveloffset=+1]
20+
1921
[id="Additional-resources_microshift-custom-ca_{context}"]
2022
== Additional resources
2123
* link:https://docs.openshift.com/container-platform/{ocp-version}/security/certificates/api-server.html#customize-certificates-api-add-named_api-server-certificates[OpenShift: Add an API server named certificate]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_security_compliance/microshift-custom-ca.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="microshift-custom-ca-certificates-cleaning_{context}"]
7+
= Cleaning up and recreating the custom certificates
8+
9+
To stop the {microshift-short} services, clean up the custom certificates and recreate the custom certificates, use the following steps.
10+
11+
.Procedure
12+
13+
. Stop the {microshift-short} services and clean up the custom certificates by running the following command:
14+
+
15+
[source,terminal]
16+
----
17+
$ sudo microshift-cleanup-data --cert
18+
----
19+
+
20+
.Example output
21+
[source,terminal]
22+
----
23+
Stopping MicroShift services
24+
Removing MicroShift certificates
25+
MicroShift service was stopped
26+
Cleanup succeeded
27+
----
28+
29+
. Restart the {microshift-short} services to recreate the custom certificates by running the following command:
30+
+
31+
[source,terminal]
32+
----
33+
$ sudo systemctl start microshift
34+
----

0 commit comments

Comments
 (0)