SSL

Issue

Cause

Diagnosis

Resolution

The Certificate Authorities provides multiple Certificate extensions for SSL authentication. A similar issue was raised for an extension <<certificate>>.p7b. On importing this certificate in Keystore the SSL was still not working.

The <<Certificate>>.p7b may contain multiple certificates and we can not import the .p7b certificate directly. We would need to convert this certificate file to a .cer extension and then import the same in Keystore to enable SSL.

 

The Certificate needs to be modified from <<Certificate>>.p7b file in a Certificate format. The modification of this file can be performed by OpenSSL tool. On modifying the .p7b file we can import the same in the keystore file. Below is the OpenSSL command that we need to execute to convert the .p7b file to .cer:

openssl pkcs7 -print_certs -in <<Certificate>>.p7b -out <<Certificate>>.cer

While trying to configure LDAP over SSL on Adeptia 6.0 installation.

The keystore is created through the gui, (now located in ServerKernel/etc/truststore/Adeptia_Keystore.jks) and imported the certificate for my LDAP server.

When you try to log in with an LDAP user name and password you will get the following errors in Adeptia logs.
''java.security.NoSuchAlgorithmException: Error constructing implementation''

The certificate included in the keystore is incompatible with Java

Not able to log in with the LDAP user name.
Look into the Adeptia Logs file for details.

Re-generate the certificate using a Java compatible method

Following error occurs while connecting to the Database activity and polling.

Error: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed."

Due to Microsoft updates, user may experience connectivity issues to Database when using SSL / TLS to secure the connection. Microsoft has added two new ciphers to Windows, which use a different Key Algorithm. The minimum key length for allowed by these ciphers is 1024 characters. If the key length used by the trading partners is less than this, the SSL /TLS Handshake will fail.

The issue is only witnessed when using the older JDBC drivers below version 4.2. Other drivers works fine. This occurs on the previous versions of Adeptia Suite such as v6.2 SP1 or earlier.

 

Upgrading Adeptia Suite to the latest version using JAVA 7 or JAVA 8 with updated SQL JDBC drivers in following sequence:-

· Sqljdbc41.jar requires a JRE of 7 and supports the JDBC 4.1 API

· Sqljdbc42.jar requires a JRE of 8 and supports the JDBC 4.2 API

If upgrade is not feasible then you need to follow the steps mentioned in the following Microsoft forum post:

https://blogs.msdn.microsoft.com/dataaccesstechnologies/2016/11/30/intermittent-jdbc-connectivity-issue-the-driver-could-not-establish-a-secure-connection-to-sql-server-by-using-secure-sockets-layer-ssl-encryption-error-sql-server-returned-an-incomplete-respons/