API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationSecurityReferenceGlossary

Replacing the SSL certificate

AOC uses a self-signed HTTPS certificate by default. You can replace it with a certificate issued by a trusted CA by following this section to eliminate browser security warnings and meet security compliance requirements.

Prerequisite

  • You have obtained the certificate file (.crt) and private key file (.key) from a trusted CA.
  • You have uploaded the preceding files to the /home/arcfra/ directory on the AOC node.
  • You have SSH login permissions for the AOC node and permissions to run the kubectl and helm commands.
  • The domain name of the certificate is the same as the URL used to access AOC. Single-domain and wildcard domain names are supported. The corresponding DNS resolution configuration has been completed.

Precaution

  • If AOC is deployed in high-availability cluster mode, you only need to perform the operation on the active node or passive node. After the operation is complete, the SSL certificate is automatically synchronized.

Procedure

  1. Log in to the AOC node over SSH, and run the following commands to import the certificate file and private key file into a Kubernetes Secret:

    kubectl -n cloudtower-system create secret tls cloudtower-tls \
      --cert <certificate_file_name>.crt \
      --key <private_key_file_name>.key

    No output is displayed after the command is successfully run.

  2. Run the following command to go to the ingress deployment directory:

    cd /usr/share/arcfra/tower/installer/apps/03-INGRESS
  3. Run the following commands to append configuration to the values.yaml file:

    cat >> values.yaml << EOF
      extraArgs:
        default-ssl-certificate: cloudtower-system/cloudtower-tls
    EOF

    After appending the configuration, make sure that values.yaml contains content similar to the following and that the YAML indentation is correct:

    controller:
      kind: DaemonSet
      hostNetwork: true
      service:
        type: ''
      name: controller
      image:
        digest: ''
      admissionWebhooks:
        patch:
          image:
            digest: ''
      config:
        worker-processes: 2
      extraArgs:
        default-ssl-certificate: cloudtower-system/cloudtower-tls
    
  4. Run the following command to apply the new certificate configuration:

    helm -n ingress-nginx upgrade ingress-nginx -f values.yaml chart.tgz --wait --atomic

    Information:

    The following warning during command execution is expected and can be ignored: WARNING: Kubernetes configuration file is group-readable. This is insecure.

    After the command is successfully run, Release "ingress-nginx" has been upgraded. Happy Helming! is displayed. If the command does not respond for a long time or reports an error, check whether the YAML format of values.yaml is correct, or contact technical support.

  5. Log in to the AOC web interface using the domain name, click the security status indicator in the browser address bar, and confirm that the certificate has been replaced successfully and that the browser shows the connection as secure.