Encrypted connection to remote SQL SERVER

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Encrypted connection to remote SQL SERVER

    Hi,
    I am having trouble making an encryped connection to an sql server over
    the internet, and would really appreciate some help. I have tried to include
    as much info as possible without making this post too long.

    I am trying to connect to an SQL SERVER (ent edition on Win2k Server)
    Box from a Win2k server box across the Internet. Both machines are NOT on
    the same domain and the only connection is via the internet.
    I have managed to connect using the following connection string.
    sConnStr = "Driver={SQL Server};" & _
    "Server=xxx.xxx.xxx.xxx";" & _
    "Network=DBNETLIB.DLL;" & _
    "Database=WebTest;" & _
    "Uid=WebTest;" & _
    "Pwd=zzz"
    where xxx.xxx.xxx.xxx is the ip address of the sql server. This connection
    works absolutly fine.
    My problems start when I try to make an encrpyted connection from the web
    server to the SQL box, And this is what I am asking for help with.
    I am using the following connection string
    sConnStr = "Driver={SQL Server};" & _
    "Server=" & sServer & ";" & _
    "Network=DBNETLIB.DLL;" & _
    "Database=WebTest;" & _
    "Uid=WebTest;" & _
    "Pwd=abc;Encrypt=YES"

    I then conductecd two experiments

    1. With windows integrated authtication activated on the file than it is
    making the connection to sql server but only from the web server.

    If I open a browser on the webserver then I am able to make an encryped
    connection.
    However if I open a web browser on a different machine (same domain) the I
    recieve the following error

    Microsoft OLE DB Provider for SQL Server error '80004005'
    [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error.
    /the_lab/RemoteDBConn/one.asp, line 129


    2. With windows authentication turned OFF.

    The connection could not be made when running the browser on the same
    machine as the webserver OR as before from a different client machine.
    In both case I recieve the same error message as above.

    I am guesing that this has something to do with how the certificated was
    installed on the webserver.
    when I open the browser on the webserver (which is logged on with the same
    account that the cirtificate was installed under) then everything is fine,
    the connection succeeds. But only when I am using windows authentication.

    so this leaves me wondering if the certificate has to be installed under a
    seperate account (maybe I_USR_MACHINE), but I do not know if this is
    possible.
    maybe i have to set up a new account, install the certificate and force the
    web server to run under that account. Trouble is this web site will
    eventually be housed at an ISP and I'll have no controll over what account
    the web server uses.

    Any help is appreciated.

    cheers

    Martin.













    martin de vroom Guest

  2. Similar Questions and Discussions

    1. DW remote connection to mySQL server failure
      Am trying to learn Interakt's Impakt . Could not go very far in this learning attempt as I cannot get DW to establish remote connection to the...
    2. Connection Reset JDBC Error - Remote Server
      I work for a web development/web hosting company and we are currently developing a site in CF MX7 (residing on our CF7 server) that connects to a...
    3. The underlying connection was closed: Unable to connect to the remote server.
      Hello, I'm a novice to .net environment. I'm trying to make use of a webservice in my asp.net client application. I successfully added reference...
    4. The underlying connection was closed: Unable to connect to the remote server
      These code generates the error: WebRequest request = WebRequest.Create("http://www.yahoo.com"); WebResponse response = request.GetResponse(); ...
    5. remote connection to SQL server problems
      While developing an ASP.NET with a SQL server running locally, I didn't have any problems using the following connection string (where ATP is the...
  3. #2

    Default Re: Encrypted connection to remote SQL SERVER

    What certificate did you install on the SQL Server?
    [url]http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/sql/reskit/sql2000/part3/c1061.asp[/url]

    Cheers
    Ken


    "martin de vroom" <martindevroom@hotmail.com> wrote in message
    news:OSvn$tcRDHA.1552@TK2MSFTNGP10.phx.gbl...
    : Hi,
    : I am having trouble making an encryped connection to an sql server
    over
    : the internet, and would really appreciate some help. I have tried to
    include
    : as much info as possible without making this post too long.
    :
    : I am trying to connect to an SQL SERVER (ent edition on Win2k Server)
    : Box from a Win2k server box across the Internet. Both machines are NOT on
    : the same domain and the only connection is via the internet.
    : I have managed to connect using the following connection string.
    : sConnStr = "Driver={SQL Server};" & _
    : "Server=xxx.xxx.xxx.xxx";" & _
    : "Network=DBNETLIB.DLL;" & _
    : "Database=WebTest;" & _
    : "Uid=WebTest;" & _
    : "Pwd=zzz"
    : where xxx.xxx.xxx.xxx is the ip address of the sql server. This connection
    : works absolutly fine.
    : My problems start when I try to make an encrpyted connection from the web
    : server to the SQL box, And this is what I am asking for help with.
    : I am using the following connection string
    : sConnStr = "Driver={SQL Server};" & _
    : "Server=" & sServer & ";" & _
    : "Network=DBNETLIB.DLL;" & _
    : "Database=WebTest;" & _
    : "Uid=WebTest;" & _
    : "Pwd=abc;Encrypt=YES"
    :
    : I then conductecd two experiments
    :
    : 1. With windows integrated authtication activated on the file than it is
    : making the connection to sql server but only from the web server.
    :
    : If I open a browser on the webserver then I am able to make an encryped
    : connection.
    : However if I open a web browser on a different machine (same domain) the I
    : recieve the following error
    :
    : Microsoft OLE DB Provider for SQL Server error '80004005'
    : [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error.
    : /the_lab/RemoteDBConn/one.asp, line 129
    :
    :
    : 2. With windows authentication turned OFF.
    :
    : The connection could not be made when running the browser on the same
    : machine as the webserver OR as before from a different client machine.
    : In both case I recieve the same error message as above.
    :
    : I am guesing that this has something to do with how the certificated was
    : installed on the webserver.
    : when I open the browser on the webserver (which is logged on with the same
    : account that the cirtificate was installed under) then everything is fine,
    : the connection succeeds. But only when I am using windows authentication.
    :
    : so this leaves me wondering if the certificate has to be installed under a
    : seperate account (maybe I_USR_MACHINE), but I do not know if this is
    : possible.
    : maybe i have to set up a new account, install the certificate and force
    the
    : web server to run under that account. Trouble is this web site will
    : eventually be housed at an ISP and I'll have no controll over what account
    : the web server uses.
    :
    : Any help is appreciated.
    :
    : cheers
    :
    : Martin.
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :


    Ken Schaefer Guest

  4. #3

    Default Re: Encrypted connection to remote SQL SERVER

    Thanks for the link ken.

    problem now solved.

    had to set the file to run under the account that i nstalled the certificate
    under on the webserver.

    still trying to figure out how I get the file to run under
    IUSR_MACHINENAME though.

    cheers

    martin.



    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    news:#9DdHVdRDHA.1572@TK2MSFTNGP12.phx.gbl...
    > What certificate did you install on the SQL Server?
    >
    [url]http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn[/url]
    ol/sql/reskit/sql2000/part3/c1061.asp
    >
    > Cheers
    > Ken
    >
    >
    > "martin de vroom" <martindevroom@hotmail.com> wrote in message
    > news:OSvn$tcRDHA.1552@TK2MSFTNGP10.phx.gbl...
    > : Hi,
    > : I am having trouble making an encryped connection to an sql server
    > over
    > : the internet, and would really appreciate some help. I have tried to
    > include
    > : as much info as possible without making this post too long.
    > :
    > : I am trying to connect to an SQL SERVER (ent edition on Win2k
    Server)
    > : Box from a Win2k server box across the Internet. Both machines are NOT
    on
    > : the same domain and the only connection is via the internet.
    > : I have managed to connect using the following connection string.
    > : sConnStr = "Driver={SQL Server};" & _
    > : "Server=xxx.xxx.xxx.xxx";" & _
    > : "Network=DBNETLIB.DLL;" & _
    > : "Database=WebTest;" & _
    > : "Uid=WebTest;" & _
    > : "Pwd=zzz"
    > : where xxx.xxx.xxx.xxx is the ip address of the sql server. This
    connection
    > : works absolutly fine.
    > : My problems start when I try to make an encrpyted connection from the
    web
    > : server to the SQL box, And this is what I am asking for help with.
    > : I am using the following connection string
    > : sConnStr = "Driver={SQL Server};" & _
    > : "Server=" & sServer & ";" & _
    > : "Network=DBNETLIB.DLL;" & _
    > : "Database=WebTest;" & _
    > : "Uid=WebTest;" & _
    > : "Pwd=abc;Encrypt=YES"
    > :
    > : I then conductecd two experiments
    > :
    > : 1. With windows integrated authtication activated on the file than it is
    > : making the connection to sql server but only from the web server.
    > :
    > : If I open a browser on the webserver then I am able to make an encryped
    > : connection.
    > : However if I open a web browser on a different machine (same domain) the
    I
    > : recieve the following error
    > :
    > : Microsoft OLE DB Provider for SQL Server error '80004005'
    > : [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error.
    > : /the_lab/RemoteDBConn/one.asp, line 129
    > :
    > :
    > : 2. With windows authentication turned OFF.
    > :
    > : The connection could not be made when running the browser on the same
    > : machine as the webserver OR as before from a different client machine.
    > : In both case I recieve the same error message as above.
    > :
    > : I am guesing that this has something to do with how the certificated was
    > : installed on the webserver.
    > : when I open the browser on the webserver (which is logged on with the
    same
    > : account that the cirtificate was installed under) then everything is
    fine,
    > : the connection succeeds. But only when I am using windows
    authentication.
    > :
    > : so this leaves me wondering if the certificate has to be installed under
    a
    > : seperate account (maybe I_USR_MACHINE), but I do not know if this is
    > : possible.
    > : maybe i have to set up a new account, install the certificate and force
    > the
    > : web server to run under that account. Trouble is this web site will
    > : eventually be housed at an ISP and I'll have no controll over what
    account
    > : the web server uses.
    > :
    > : Any help is appreciated.
    > :
    > : cheers
    > :
    > : Martin.
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    > :
    >
    >

    martin de vroom Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139