Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SSL security error with database connection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SSL security error with database connection

 Post Reply Post Reply
Author
MPIDR View Drop Down
Newbie
Newbie


Joined: 20 April 2017
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote MPIDR Quote  Post ReplyReply Direct Link To This Post Topic: SSL security error with database connection
    Posted: 20 April 2017 at 2:00pm

Dear Web Wiz Forum folks,

We are new to Web Wiz Forum and just about to set up our first forum. IIS is 8.5 on Win2012R2 with the SQL server native client 11.0 installed. The SQL server is 2008 R2 including all patches for TLS 1.2. Creating an ODBC connection from the webserver to the WWZ database using the SQL native driver works fine and the tests completes successfully. This was done for testing only.
 
However, when running the WWZ installation wizard and using the same database, the connection tests fails with an SSL security error.
 
An Error Occurred Connecting to the Database
Error details:-
Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error.
 
Is there a solution to this?
 
Regards,
MPIDR
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2017 at 2:39pm
This is likely related to the SQL Server databases driver as Web Wiz Forums uses the 'SQLOLEDB' driver for the database connection.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2017 at 2:45pm
I have had a look and you can change the driver from SQLOLEDB to SQL Server Native Client 11.0 by editing line 89 of the file database/database_connection.asp and change it from

Provider=SQLOLEDB;

to

Provider=SQL Server Native Client 11.0;


Edited by WebWiz-Bruce - 20 April 2017 at 3:18pm
Back to Top
MPIDR View Drop Down
Newbie
Newbie


Joined: 20 April 2017
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote MPIDR Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2017 at 9:45am
Dear Bruce,

Thank you very much for your reply! 

I made the changes today and noticed that I also had to change it in two more files:

setup_db_con_test.asp (line 166)
setup_database_connection.asp (line 168)

With these changes, setting up the database works well.

Regards,
MPIDR
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2017 at 11:41am
Glad to hear that it worked.

We will look at adding an option of selecting the database driver for SQL Server for future releases.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.