Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / July 2007

Tip: Looking for answers? Try searching our database.

JDBC - MSQL 2K5 SSL ISSUE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phoenix - 13 Jul 2007 13:49 GMT
Hi ,

How could I query a SQL Server 2005 dataserver instance  through my
Java Program if it is running in SSL mode or not  ?
I am using a third party JDBC driver to esatblish SSL connection with
a MS SQL SERVER 2K5 dataserver but my connection
fails when the dataserver is restarted in Non - SSL mode. So , I need
a way to first query the database if its running in SSL
mode or not so that I can prepare my queries accordingly to make a
decision at runtime.

Thanks to you all genious in advance !!
Atiq UR Rahman Chaudhary - 20 Jul 2007 08:55 GMT
My question is also same, however I am trying to configure SSL on SQL Server
2000,
1-SQL Server OS is Windows 2003 Server, SQL Server 2000 with SP 4, Active
directory is also installed on same machine, this is test system a AD domain
trust relationship is configured with the production domain).
2- I create and configure the certificate successfully, (MS CA was also
installed on the same machine, Server Authentication certificate was issued
by this CA, however I removed CA's private key from server).
3- I enabled "Force Protocol Encryption" option, (at this point I have a
question that is "how can I make it sure either SQL Server SSL configured
successfully", is there any utility / mechanism to verify SSL
configuration?)
4- Using SQL 2005 Management studio/ SQL Server 2000 Client (from other
machines joined to production domain controller), connection to server is
OK, (I have no idea either it is SSL or Non-SSL, please note it that "Force
Encrypted Connection" option in SQL Server 2000 network utility is enabled,
so I am sure SQL Server 2005 management studio is working behind SQL Server
using SSL).
5- But when I tried to communicate to the same server from same machines
using JDBC connectivity, I am failed to connect to SQL Server 2000 databases
I receive the error messages in SQL log as below
   "Connection opened but invalid login packet(s) sent.  Connection
closed.."
   "Error: 17832, Severity: 20, State: 9"

I am using Sprinta Type 4 driver for JDBC connectivity.

Thank you in advance.

Best Regards,
Atiq Ur Rahman Chaudhary
IT Manager

> Hi ,
>
[quoted text clipped - 8 lines]
>
> Thanks to you all genious in advance !!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.