cancel
Showing results for 
Search instead for 
Did you mean: 
vsolodkyi
Sisense Team Member
Sisense Team Member

Resolving Installation Failures with "Error occurred during validate_ssl_certs section"

Issue:

During the installation process on a Linux system, you may encounter the error message: "Error occurred during validate_ssl_certs section." This error typically occurs when there is an issue with the SSL certificate being used.

Solution:

To resolve this issue, you need to validate the SSL certificate and ensure it matches the corresponding private key. This can be done using the openssl command-line tool, which is widely used for managing and validating SSL certificates.

NOTE: You can use this guide as a general reference for validating SSL certificates in various contexts, whether during software installations, server setups, or routine security checks.

Steps to Validate the SSL Certificate:

Check if the Certificate and Key Files Exist:
First, ensure that both the certificate and key files are present in the specified locations.

CERT_PATH="/path/to/your/certificate.crt"

KEY_PATH="/path/to/your/private.key"
if [[ -f "$CERT_PATH" && -f "$KEY_PATH" ]]; then

  echo "Certificate and key files exist."

else

  echo "Certificate or key file does not exist."

  exit 1

fi

Validate the SSL Certificate:
Use the following command to display the details of the certificate. This helps in verifying whether the certificate is properly formatted and valid.

openssl x509 -in "$CERT_PATH" -text -noout
if [[ $? -eq 0 ]]; then

  echo "Certificate is valid."

else

  echo "Certificate is invalid."

  exit 1

fi

Check if the Certificate and Key Match:
It's crucial that the SSL certificate matches the private key. The following commands compare the modulus of the certificate and key to ensure they match.

CERT_MODULUS=$(openssl x509 -noout -modulus -in "$CERT_PATH" | openssl md5)

KEY_MODULUS=$(openssl rsa -noout -modulus -in "$KEY_PATH" | openssl md5)
if [[ "$CERT_MODULUS" == "$KEY_MODULUS" ]]; then

  echo "Certificate and key match."

else

  echo "Certificate and key do not match."

  exit 1

fi

Conclusion:

If the certificate and key files exist, the certificate is valid, and the certificate matches the key, then the SSL setup is likely correct. If any of these checks fail, you may need to reissue or replace the certificate and key files. This should resolve the "Error occurred during validate_ssl_certs section" error and allow your installation process to proceed.

Always ensure you use valid and correctly matched SSL certificates and keys to avoid such issues.

 

Check out this related content:
Academy Course 
Sisense Documentation 

Rate this article:
Version history
Last update:
‎08-20-2024 02:09 PM
Updated by: