// Module included in the following assemblies: // // * security/certificates/api-server.adoc [id="add-default-api-server_{context}"] = Add an API server default certificate To allow clients outside the cluster to validate the API server's certificate, you can replace the default certificate with one that is issued by a public or organizational CA. .Prerequisites * You must have a valid certificate and key in the PEM format. .Procedure . Create a secret that contains the certificate and key in the `openshift-config` namespace. + ---- $ oc create secret tls \//<1> --cert= \//<2> --key= \//<3> -n openshift-config ---- <1> `` is the name of the secret that will contain the certificate. <2> `` is the path to the certificate on your local file system. <3> `` is the path to the private key associated with this certificate. . Update the API server to reference the created secret. + ---- $ oc patch apiserver cluster \ --type=merge -p \ '{"spec": {"servingCerts": {"defaultServingCertificate": {"name": ""}}}}' <1> ---- <1> Replace `` with the name used for the secret in the previous step. . Examine the `apiserver/cluster` object and confirm the secret is now referenced. + ---- $ oc get apiserver cluster -o yaml ... spec: servingCerts: defaultServingCertificate: name: ... ----