Quick Links:
- Prerequisites
- Generate a self-signed certificate
- Install Custom Certificate
Prerequisites
- This workaround requires a .pem certificate file to be uploaded.
- If you have a custom certificate, using an SCP utility like WinSCP, upload the .pem file to the /tmp directory on all nodes in the VMware Aria Operations for Logs cluster.
Note: VMware Aria Operations for Logs 8.12 build 21618456 requires Client Auth usage. Build 21696970 and later drop this requirement. If you are on build 21618456, ensure your custom certificate meets this requirement.
You can run echo | openssl s_client -connect localhost:443 2>/dev/null | openssl x509 -noout -purpose | grep 'SSL client :' on a node with your custom certificate installed to confirm.
-
-
- If the above command returns SSL client : Yes, then you can proceed to the Install Certificate section.
- If the above command returns SSL client : No, then you must regenerate your custom certificate with Client Auth enabled.
Generate a self-signed certificate
- Log into the Primary node as root via SSH or Console.
- Run the following command to generate a self-signed certificate:
openssl req -newkey rsa:2048 -keyout domain.key -x509 -days 3650 -out domain.crt -nodes
Note: This command will generate a self-signed certificate that is valid for 3650 days (10 years). You may alter the -days value as needed per your organization's security requirements.
Note: When prompted by openssl, provide the required values for your company. If you want to use the default certificate options, enter the following values:
Prompt |
Value |
Country |
US |
State Or Province |
California |
Locality |
Palo Alto |
Organization |
VMware, Inc. |
Organization Unit |
vCenter Log Insight |
Common Name |
VMware vCenter Log Insight |
3. Run the following command to concatenate the key and certificate into a .pem file, which you can then use in the next Prerequisites section
cat domain.key domain.crt > /tmp/cert.pem
- Using an SCP utility like WinSCP, copy the /tmp/cert.pem file to the /tmp directory on all other nodes in the cluster.
Install Custom Certificate
- Log into the Primary node as root via SSH or Console.
- Run the following command to copy the newly generated or uploaded certificate to the following location:
cp /tmp/cert.pem /usr/lib/loginsight/application/etc/certs/custom.pem
Note: Replace /tmp/cert.pem with the path and file name of the custom certificate you uploaded in the section.
- Run the following command to use the custom-ssl-cerf script:
/usr/lib/loginsight/application/sbin/custom-ssl-cerf
- Repeat steps 2 and 3 on all remaining nodes in the cluster
- Run the following command to restart the loginsight service on all nodes, one at a time
systemctl restart loginsight
Note: Once the service has restarted, wait a few minutes until the ingestion rate is back to normal, then proceed to restart the service on the next node