1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/kmm-checking-the-keys.adoc
2023-10-30 10:13:25 -04:00

30 lines
901 B
Plaintext

// Module included in the following assemblies:
//
// * hardware_enablement/kmm-kernel-module-management.adoc
:_mod-docs-content-type: PROCEDURE
[id="kmm-checking-the-keys_{context}"]
= Checking the keys
After you have added the keys, you must check them to ensure they are set correctly.
.Procedure
. Check to ensure the public key secret is set correctly:
+
[source,terminal]
----
$ oc get secret -o yaml <certificate secret name> | awk '/cert/{print $2; exit}' | base64 -d | openssl x509 -inform der -text
----
+
This should display a certificate with a Serial Number, Issuer, Subject, and more.
. Check to ensure the private key secret is set correctly:
+
[source,terminal]
----
$ oc get secret -o yaml <private key secret name> | awk '/key/{print $2; exit}' | base64 -d
----
+
This should display the key enclosed in the `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----` lines.