API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationSecurityReferenceGlossary

Updating the SSL certificate

After the certificate expires, you can update the SSL certificate used by AOC by following this section.

Prerequisite

  • You have obtained the new certificate file (.crt) and private key file (.key).
  • You have uploaded the preceding files to the /home/arcfra/ directory on the AOC node.

Procedure

  1. Log in to the AOC node over SSH, and run the following command to delete the Secret of the original certificate:

    kubectl delete secrets -n cloudtower-system cloudtower-tls

    No output is displayed after the command is successfully run.

  2. Run the following commands to create a Secret that contains the new certificate:

    kubectl -n cloudtower-system create secret tls cloudtower-tls \
      --cert <new_certificate_file_name>.crt \
      --key <new_private_key_file_name>.key

    After the command is successfully run, secret/cloudtower-tls created is displayed.

  3. Run the following command to obtain the name of the current Ingress Nginx Pod:

    kubectl get pods -n ingress-nginx
  4. Run the following command to restart the Ingress Nginx Pod. The Pod is automatically re-created after it is deleted.

    kubectl delete pod -n ingress-nginx <Pod_name>

    After the command is successfully run, pod/<Pod_name> deleted is displayed.

  5. Log in to the AOC web interface and verify that the new certificate has taken effect.