Enabling Secure Sockets Layer for a Microsoft SQL Server JDBC Connection

Similar documents
Installation and Configuration Guide

Access SharePoint using Basic Authentication and SSL (via Alternative Access URL) with SP 2016 (v 1.9)

Security configuration of the mail server IBM

Installation and Configuration Guide

Step-by-step installation guide for monitoring untrusted servers using Operations Manager

Using SSL to Secure Client/Server Connections

Enabling Microsoft Outlook Calendar Notifications for Meetings Scheduled from the Cisco Unified MeetingPlace End-User Web Interface

Configuring SAML-based Single Sign-on for Informatica Web Applications

BROWSER-BASED SUPPORT CONSOLE USER S GUIDE. 31 January 2017

Configuring SSL for EPM /4 Products (Cont )

ms-help://ms.technet.2004apr.1033/ad/tnoffline/prodtechnol/ad/windows2000/howto/mapcerts.htm

20411D D Enayat Meer

Enabling SAML Authentication in an Informatica 10.2.x Domain

Using SSL/TLS with Active Directory / LDAP

Configuration of Microsoft Live Communications Server for Partitioned Intradomain Federation

Genesys Security Deployment Guide. What You Need

Wavecrest Certificate SHA-512

Installation Guide. Mobile Print for Business version 1.0. July 2014 Issue 1.0

SCCM Plug-in User Guide. Version 3.0

Secure ACS for Windows v3.2 With EAP TLS Machine Authentication

VMware AirWatch Certificate Authentication for EAS with ADCS

S/MIME on Good for Enterprise MS Online Certificate Status Protocol. Installation and Configuration Notes. Updated: November 10, 2011

Wired Dot1x Version 1.05 Configuration Guide

Workspace ONE UEM Integration with RSA PKI. VMware Workspace ONE UEM 1810

Copyright

Configuring IBM WebSphere Application Server 7 for Secure Sockets Layer and Client-Certificate Authentication on SAS 9.3 Enterprise BI Server Web

Using the Terminal Services Gateway Lesson 10

VMware AirWatch Integration with RSA PKI Guide

GO Software Pty Limited Map: 27 Tacoma Blvd, Pasadena SA 5042 ABN: ACN: How to Export a Self Signed Server Certificate

Configuring Windows 7 VPN (Agile) Client for authentication to McAfee Firewall Enterprise v8. David LePage - Enterprise Solutions Architect, Firewalls

AirWatch Mobile Device Management

5.5.3 Lab: Managing Administrative Settings and Snap-ins in Windows XP

Microsoft Dynamics GP Web Client Installation and Administration Guide For Service Pack 1

HPE Service Virtualization

Cisco Secure ACS for Windows v3.2 With PEAP MS CHAPv2 Machine Authentication

ConnectUPS-X / -BD /-E How to use and install SSL, SSH

Web Service Integration

SDN Contribution HOW TO CONFIGURE XMII BUILD 63 AND IIS 6.0 FOR HTTPS

SSL/TLS Certificate Check

Please select your version

StreamServe Persuasion SP4 StreamStudio

SAP Business One Integration Framework

IBM Security Identity Governance and Intelligence. SDI-based IBM Security Privileged Identity Manager adapter Installation and Configuration Guide IBM

VMware Horizon JMP Server Installation and Setup Guide. 13 DEC 2018 VMware Horizon 7 7.7

Perceptive SOAPBridge Connector

VMware AirWatch Certificate Authentication for EAS with NDES-MSCEP

Certificate Properties File Realm

VMware AirWatch Certificate Authentication for EAS with NDES-MSCEP. For VMware AirWatch

Configuring Cisco Unified MeetingPlace Web Conferencing Security Features

VMware AirWatch Integration with SecureAuth PKI Guide

VMware Horizon JMP Server Installation and Setup Guide. Modified on 19 JUN 2018 VMware Horizon 7 7.5

Using Hypertext Transfer Protocol over Secure Sockets Layer (HTTPS)

Mitel MiVoice Connect Security Certificates

Deployment guide for Duet Enterprise for Microsoft SharePoint and SAP Server 2.0

Hypertext Transfer Protocol over Secure Sockets Layer (HTTPS)

Keytool and Certificate Management

SSL/TLS Certificate Generation

Hypertext Transfer Protocol Over Secure Sockets Layer (HTTPS)

Assureon Installation Guide Client Certificates. for Version 6.4

Hitachi ID Systems Inc Identity Manager 8.2.6

Accessing clusters 2. Accessing Clusters. Date of Publish:

Table of Contents. Section 1: DocSTAR WebView v1.0 Requirements & Installation CD... 1 Section 2: DocSTAR WebView v1.

ms-help://ms.technet.2004apr.1033/win2ksrv/tnoffline/prodtechnol/win2ksrv/howto/efsguide.htm

SolarWinds. Patch Manager. Evaluation Guide. Version 2.1.2

Advanced Integration TLS Certificate on the NotifySCM Server

Setting up Certificate Authentication for SonicWall SRA / SMA 100 Series

Microsoft ADFS Configuration

Configure the IM and Presence Service to Integrate with the Microsoft Exchange Server

Toolkit Activity Installation and Registration

V1.0 Nonkoliseko Ntshebe October 2015 V1.1 Nonkoliseko Ntshebe March 2018

Configuration examples for the D-Link NetDefend Firewall series

WPC-LDAP Integration Setup Guide

Configuring Ambari Authentication with LDAP/AD

Creating and Installing SSL Certificates (for Stealthwatch System v6.10)

Developers Integration Lab (DIL) Certificate Installation Instructions. Version 1.6

App Orchestration 2.6

1Integrate for ArcGIS Installation Guide. Server Edition

Public Key Enabling Oracle Weblogic Server

This help covers the ordering, download and installation procedure for Odette Digital Certificates.

Configuring Ambari Authentication with LDAP/AD

Creating an authorized SSL certificate

Getting Started Guide

MCSA Guide to Networking with Windows Server 2016, Exam

Registration and Renewal procedure for Belfius Certificate

Best Practices for Security Certificates w/ Connect

Workspace ONE UEM Certificate Authority Integration with JCCH. VMware Workspace ONE UEM 1810

SSL/TLS Certificate Generation

LAB 5 ANSWER KEY WORKING WITH FIREWALLS, ENCRYPTED FILE SYSTEMS (EFS) AND USER ACCOUNT CONTROL (UAC)

How to Configure Mutual Authentication using X.509 Certificate in SMP SAP Mobile Platform (3.X)

Contents Overview... 5 Downloading Primavera Gateway... 5 Primavera Gateway On-Premises Installation Prerequisites... 6

NETWRIX PASSWORD EXPIRATION NOTIFIER

BusinessObjects Enterprise XI Release 1 and Release 2

Microsoft Windows Encrypting File System (EFS) Certificate Migration from XP to VISTA (also works with Windows 7) Instruction Guide

VPN Tracker for Mac OS X

NBC-IG Installation Guide. Version 7.2

Certificates for Live Data

Securing U2 Soap Server

Cisco has more than 200 offices worldwide. Addresses, phone numbers, and fax numbers are listed on the Cisco website at

Copyright and Trademarks

C O N F IGURIN G EN HA N C ED SEC U RITY O PTIONS F O R REMOTE C O N TROL

Transcription:

Enabling Secure Sockets Layer for a Microsoft SQL Server JDBC Connection Secure Sockets Layer (SSL) is the standard security technology for establishing an encrypted link between a web server and a browser. This use case describes how to enable SSL for a Microsoft SQL Server JDBC connection. The following list provides a summary of the connection properties that must be used to enable SSL: encrypt= Set to true or false. trustservercertificate= Set to true or false. truststore= Provide the full path to the truststore including the truststore filename. truststorepassword= Provide the password of the truststore. hostnameincertificate= This value must match the Subject value for hostname within the certificate. Testing With a Self-signed Certificate When the Encrypt and trustservercertificate properties are set to true, the Microsoft JDBC Driver for SQL Server will not validate the SQL Server SSL certificate. This is usually required when allowing connections in a test environment (when the SQL Server instance has only a self-signed certificate). For example: jdbc:sqlserver://hostname:1433;databasename=adventureworks2014;encrypt=true; trustservercertificate=true;truststore=c:\program Files\Java\jdk1.7.0_79\jre\ lib\security\cacerts;truststorepassword=changeit Testing With a Certificate Authority (CA) Signed Certificate When the Encrypt property is set to true and the trustservercertificate property is set to false, the Microsoft JDBC Driver for SQL Server will validate the SQL Server SSL certificate. Validating the server certificate is a part of the SSL handshake and ensures that the server is the correct server for the connection. In order to validate the server certificate, the trust material must be supplied at connection time either by using the truststore and truststorepassword properties explicitly, or by using the underlying Java Virtual Machine (JVM) default truststore implicitly. 1

For example: jdbc:sqlserver://hostname:1433;databasename=adventureworks2014;encrypt=true; trustservercertificate=false;truststore=c:\program Files\Java\jdk1.7.0_79\jre\ lib\security\cacerts;truststorepassword=changeit Alternatively, you can set the following Java Settings (as startup options) within your iway Service Manager (ism) Configuration or iway Integration Application (iia) Template. These options will apply to all JDBC Data Providers running in the iway environment. For example: -Djavax.net.ssl.trustStore=C:\MyCertificates\truststore.jks -Djavax.net.ssl.trustStorePassword=changit The following is a screenshot of the Java Settings Java Virtual Machine Settings (Startup Options) in the ism Administration Console: Exporting the SQL Server Certificate To export the SQL Server certificate: 1. Open the Microsoft Management Console (MMC ) by typing mmc in the Run dialog and clicking OK, as shown in the following image. 2

The Microsoft Management Console opens. 2. Click File from the menu bar and then select Add/Remove Snap-in, as shown in the following image. The Add or Remove Snap-ins dialog opens, as shown in the following image. 3

3. In the Available snap-ins area (left pane) of the dialog, click Certificates, and then click Add. The Certificates snap-in dialog opens, as shown in the following image. 4. Ensure My user account is selected (default) and click Finish. You are returned to the Add or Remove Snap-ins dialog where the selected snap in (Certificates Current User) is added to the Selected snap-ins area (right pane), as shown in the following image. 4

5. Click OK. You are returned to the main area of the Microsoft Management Console. 6. In the left pane, expand Certificates Current User, Personal, and then click Certificates, as shown in the following image. 7. Right-click your certificate in the center pane, select All Tasks from the context menu, and then click Export, as shown in the following image. The Certificate Export Wizard opens, as shown in the following image. 5

8. Click Next. The Export Private Key pane opens, as shown in the following image. 9. Ensure that No, do not export the private key is selected (default) and click Next. The Export File Format pane opens, as shown in the following image. 6

10. Ensure that DER encoded binary X.509 (.CER) is selected (default) and click Next. The File to Export pane opens, as shown in the following image. 11. Enter (or browse to) the full path for the file you want to create. 12. Click Next and then click Finish. 7

This certificate can now be imported into your truststore using the following command: -------------------------------------------------------------------------- keytool -import -v -trustcacerts -alias myserver -file MSSQLcert.cer - keystore truststore.jks -------------------------------------------------------------------------- 8