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
.crt) and private key file (.key) from a trusted CA./home/arcfra/ directory on the AOC node.kubectl and helm commands.Precaution
Procedure
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>.keyNo output is displayed after the command is successfully run.
Run the following command to go to the ingress deployment directory:
cd /usr/share/arcfra/tower/installer/apps/03-INGRESSRun the following commands to append configuration to the values.yaml file:
cat >> values.yaml << EOF
extraArgs:
default-ssl-certificate: cloudtower-system/cloudtower-tls
EOFAfter 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
Run the following command to apply the new certificate configuration:
helm -n ingress-nginx upgrade ingress-nginx -f values.yaml chart.tgz --wait --atomicInformation:
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 ofvalues.yamlis correct, or contact technical support.
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.