How to use TLS_HOSTVALIDATION when sending emails from SLC via Gmail
It is easy to set system option TLS_HOSTVALIDATION to NONE when configuring your Altair SLC software so that your SAS Language programs can potentially send emails via a Gmail account.
However it is also possible to set TLS_HOSTVALIDATION to SYSTEM and this forces the Gmail SSL certificate to be honoured.
On a typical Windows system the Gmail SSL certificate is already stored in the Windows certificate store. On a Linux system you will probably need to obtain the certificate and put it into a .CER file.
We assume here that you have got OpenSSL installed on your system.
Use OpenSSL to download the gmail certificate as follows...
In a shell terminal on Linux or a CMD terminal on Windows use the command: openssl s_client -connect smtp.gmail.com:465
(You may first need to use "cd" to change directory to the location of the OpenSSL installation on your system (e.g. C:\Program Files\OpenSSL-Win64\bin on Windows, /usr/bin on Linux).
You can see the certificate between the BEGIN...END lines in the output. Save that part to a .cer file, including the BEGIN line and the END line.
Double click on the .cer file and click the install button to get it into your Windows operating system.
On a Linux system you should set the additional system option TLS_CACERTS to point to the full file path of your downloaded Gmail certificate.
The settings for system options TLS_HOSTVALIDATION and TLS_CACERTS may be put into the altairslc.cfg file or used within a SAS Language program as usual.