Getting Data In

Splunk DB Connect – Unable to Establish SQL Server 2016 Connection Due to SSL Certificate Validation Error

NightOwl2212
New Member

Hello ,

I'm trying to establish a database connection using Splunk DB Connect to Microsoft SQL Server 2016. However, the connection validation fails with the following error:

Error Message:

Database connection enoc_o is invalid.

"encrypt" property is set to "true" and
"trustServerCertificate" property is set to "false",
but the driver could not establish a secure connection
to SQL Server using SSL encryption.

Error: (certificate_unknown)
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target.

we tested all possible combinations of the following JDBC connection properties:

  1. encrypt=true;trustServerCertificate=false

  2. encrypt=true;trustServerCertificate=true

  3. encrypt=false;trustServerCertificate=false

  4. encrypt=false;trustServerCertificate=true

Despite trying all these combinations, we are still unable to establish the connection through DB Connect.

Additional Information:

The database administrator has confirmed that they can successfully connect to the SQL Server using the same database account (siemuser) and retrieve data. Therefore, the credentials and database accessibility appear to be working from their side.

Labels (1)
Tags (2)
0 Karma

JohnEGones
Communicator

Try this:

  • Open $JAVA_HOME/lib/security/java.security and comment out or remove lines that disable the algorithms DB Connect needs.

     

    Example:

    # jdk.certpath.disabledAlgorithms = SHA1withRSA, ECDSA
    # jdk.tls.disabledAlgorithms = TLSv1.2, TLSv1.3
    # jdk.disabled.namedCurves = secp256k1
  • Ensure the algorithms you need (e.g., TLSv1.2, TLSv1.3, secp256k1) are allowed.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Manage Edge Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Edge Processor, onboard one instance, deploy a pipeline ...

Splunk Brings Proof of Control to Digital Asset Transfers

Digital assets now sit inside the core of financial services. HSBC launched its Tokenized Deposit Service in ...

Manage Ingest Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Ingest Processor pipeline, deploy it to the ...