thanks Alexander!

there is my function of the script, it worked just fine. I noticed that there is a mistake in my code that didnt remove the temp file as the results of the check, so every time the script runs, it will dump results into the same file and the file got send to me as email.

anyways, silly me and all fixed.

function integrityChk
{
# function to freeze the instance

echo 'set sc=$$CheckList^Integrity(,,,,5) do Display^Integrity(,1,) kill ^IRIS.TempIntegrityOutput(+$job)' | irissession $ENV -U%SYS
}

then passing the parameter to it to let it adapt to environment you want to run with

i am using a different method which is quite similar to this, also added the http to https redirect.

in httpd.conf file add one line to include ssl.conf file

Include conf/ssl.conf

create a new ssl.conf

Listen 52443 https
SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
SSLCryptoDevice builtin
<VirtualHost *:52773>
    ServerName localhost
    Redirect "/" "https://example.com:52443/"
</VirtualHost>
<VirtualHost _default_:52443>
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -TLSv1 -TLSv1.1 -TLSv1.2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite PROFILE=SYSTEM
SSLProxyCipherSuite PROFILE=SYSTEM
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
<FilesMatch "\.(log|ini|pid|exe|so)$">
        Require all denied
        SSLOptions +StdEnvVars
    </FilesMatch>
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
 

restart database, you will still seeing the http process listening on the original port.

but when you copy the original url (http) to browser, it will redirect to https.