1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

OSDOCS-8806: cleaning and recreating custom certificates

This commit is contained in:
aravipra
2024-06-07 18:16:33 +05:30
committed by openshift-cherrypick-robot
parent f2ac208a8a
commit 977b239766
2 changed files with 36 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ include::modules/microshift-custom-ca-reserved-names.adoc[leveloffset=+1]
include::modules/microshift-custom-ca-troubleshooting.adoc[leveloffset=+1]
include::modules/microshift-custom-ca-cert-cleaning.adoc[leveloffset=+1]
[id="Additional-resources_microshift-custom-ca_{context}"]
== Additional resources
* 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]

View File

@@ -0,0 +1,34 @@
// Module included in the following assemblies:
//
// * microshift_security_compliance/microshift-custom-ca.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-custom-ca-certificates-cleaning_{context}"]
= Cleaning up and recreating the custom certificates
To stop the {microshift-short} services, clean up the custom certificates and recreate the custom certificates, use the following steps.
.Procedure
. Stop the {microshift-short} services and clean up the custom certificates by running the following command:
+
[source,terminal]
----
$ sudo microshift-cleanup-data --cert
----
+
.Example output
[source,terminal]
----
Stopping MicroShift services
Removing MicroShift certificates
MicroShift service was stopped
Cleanup succeeded
----
. Restart the {microshift-short} services to recreate the custom certificates by running the following command:
+
[source,terminal]
----
$ sudo systemctl start microshift
----