How to edit Dbvisit Observer Configuration file for the mail server with Invalid SSL certificate

Follow

Observer Configuration fails with a warning message when the mail server got Invalid SSL certificate

Problem Details

Problem Statement

warning: TLS library problem: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:ssl

Applicable Error Code

warning: TLS library problem: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:ssl

Affected Versions

 v9 and v10

Affected Platforms

Linux and Windows

 
Description

Dbvisit Observer does proper validation of any TLS-secured connections with an external authority. 

This error log indicates that the Observer failed to verify the server's certificate, and so has closed the connection during the TLS negotiation. This has happened because the certificate being presented is invalid if you are using a self-signed certificate i.e not signed by a recognised CA. We recommend getting a valid certificate since this would risk your mail server from attackers

You could try the below workaround until you get a Valid certificate

Workaround
Step 1: Stop the observer on the machine:

In Windows, you can stop the service from the service manager

In Linux, you have to manually kill the process

ps -ef | grep observer
kill -9 <pid>
Step 2: Edit the observer conf
cd $DBVISIT_BASE/observer/conf
vi observer.conf
Step 3. now set the parameter in the config file. You have to set it for each notifier
"tls_skip_verify": true
      "notifiers": {
        "email": {
          "enabled": true,
"tls_skip_verify": true,
        "smtp_host": "192.168.56.10",
          "smtp_port": "25",
          "username": "",
          "password": "",

...

      "notifiers": {
        "email": {
          "enabled": true,
"tls_skip_verify": true,
        "smtp_host": "192.168.56.10",
          "smtp_port": "25",
          "username": "",
 
Step 4: now start again the observer
nohup ./observersvc -f conf/observer.conf &
 
 
Have more questions? Submit a request

Comments