Fixing SQL Server JDBC Connection SSL Certificate Errors

When connecting to a SQL Server database from a Java application using JDBC, you might encounter an SSL/TLS handshake failure. This typically manifests as an error indicating the driver cannot establish a secure connection. The root cause is often that the SQL Server's SSL certificate is not trusted by the Java Virtual Machine (JVM). This can h ...

Posted on Thu, 18 Jun 2026 18:22:21 +0000 by nerya

Connecting Spring Boot to Elasticsearch via HTTPS with Self-Signed Certificates

Before diving into the code, ensure your Elasticsearch server is running. Open a terminal and execute the elasticsearch command to start the server. Understanding the Two REST Client Types Elasticsearch provides two distinct REST client implementations: High-Level REST Client (RestHighLevelClient): This wrapper handles serialization and deseria ...

Posted on Wed, 17 Jun 2026 17:30:22 +0000 by priya_amb

Handling SSL Certificate Errors in Chrome WebDriver

OverviewWhen automating Chrome browsers using Selenium, developers frequently encounter SSL handshake failures. This typically occurs when the target website possesses an invalid, expired, or untrusted security certificate, or when testing against internal environments with self-signed certificates.The IssueThe browser instance fails to load th ...

Posted on Thu, 28 May 2026 18:58:05 +0000 by Jaguar83

Sending Email with Python via SMTP and SSL

import smtplib from email.mime.text import MIMEText sender = 'alice@example.com' # QQ mailbox address auth_code = 'your-16-char-auth-code' # generated in QQ Mail settings recipients = ['bob@example.com', 'carol@example.com'] title = 'Test message from Python' body = ''' Hello, This is a plain-text message sent with smtplib. Regards, ...

Posted on Mon, 25 May 2026 18:51:37 +0000 by joquius

Implementing Mutual TLS Authentication with Nginx

Generating Certificates To establish mutual authentication, you must first create a Certificate Authority (CA) and sign your server and client certificates. Use the following commands to generate the necessary keys and certifictaes: # Generate the root CA private key openssl genrsa -out root_authority.key 4096 # Generate the root CA self-signed ...

Posted on Thu, 07 May 2026 10:53:29 +0000 by jrodd32