Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / January 2008

Tip: Looking for answers? Try searching our database.

Trusted connection problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eve - 04 Jan 2008 15:40 GMT
I have an application that performs an http post to the remote server using
SSL. When I run the app on my local machine, I get this error:

The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.

When my co-worker runs the same app on his machine, everything works fine.
He tried running the app on my machine under his network login with no
success. He doesn't recall configuring his pc to be able to talk to the
server.

I'm wondering if this error might have anything to do with .NET security??
If it does, how can I compare my settings against my co-worker's?
I would appreciate any help. Thank you in advance!
Joe Kaplan - 04 Jan 2008 15:51 GMT
This is usually a problem with PKI and is not an error specific to .NET
security.  It sounds like your workstation does not trust the issuer of the
remote server's certificate.  Normally when this happens, an error will be
logged by schannel in the system event log on the client machine with the
details.  Providing this info would help.

If that is the problem, you can either fix the trust problem by installing
the server's root CA cert in your client's trusted roots (better) or code
around the problem to ignore this type of problem with the appropriate
validation callback.

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

>I have an application that performs an http post to the remote server using
> SSL. When I run the app on my local machine, I get this error:
[quoted text clipped - 11 lines]
> If it does, how can I compare my settings against my co-worker's?
> I would appreciate any help. Thank you in advance!
Eve - 04 Jan 2008 17:15 GMT
Joe,
Thank you for your prompt response. Nothing is being logged in the system
event log after I get this error...

> This is usually a problem with PKI and is not an error specific to .NET
> security.  It sounds like your workstation does not trust the issuer of the
[quoted text clipped - 24 lines]
> > If it does, how can I compare my settings against my co-worker's?
> > I would appreciate any help. Thank you in advance!
Eve - 04 Jan 2008 18:53 GMT
How can I verify that my co-worker has the server's root CA certificate
installed on his machine?

> This is usually a problem with PKI and is not an error specific to .NET
> security.  It sounds like your workstation does not trust the issuer of the
[quoted text clipped - 24 lines]
> > If it does, how can I compare my settings against my co-worker's?
> > I would appreciate any help. Thank you in advance!
Eve - 04 Jan 2008 19:05 GMT
I found this link:
http://www.isaserver.org/img/upl/exchangekit/importrootca/importrootca.htm

> How can I verify that my co-worker has the server's root CA certificate
> installed on his machine?
[quoted text clipped - 27 lines]
> > > If it does, how can I compare my settings against my co-worker's?
> > > I would appreciate any help. Thank you in advance!
Eve - 04 Jan 2008 19:34 GMT
I guess I could compare my list on the Trusted Root Certification Authorities
tab in Internet Options against the list on my co-worker's machine...

> How can I verify that my co-worker has the server's root CA certificate
> installed on his machine?
[quoted text clipped - 27 lines]
> > > If it does, how can I compare my settings against my co-worker's?
> > > I would appreciate any help. Thank you in advance!
Joe Kaplan - 04 Jan 2008 21:05 GMT
Yes, that's one way to do it.  IE is usually pretty good at telling you
whether a given site's certificate will be trusted by a given client machine
as well and will show you the cert chain.

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

>I guess I could compare my list on the Trusted Root Certification
>Authorities
[quoted text clipped - 41 lines]
>> > > If it does, how can I compare my settings against my co-worker's?
>> > > I would appreciate any help. Thank you in advance!
Eve - 04 Jan 2008 22:04 GMT
I installed the server's root CA cert on my machine and I'm not getting that
connection error anymore. Thanks a lot for your prompt help and follow up!

> Yes, that's one way to do it.  IE is usually pretty good at telling you
> whether a given site's certificate will be trusted by a given client machine
[quoted text clipped - 47 lines]
> >> > > If it does, how can I compare my settings against my co-worker's?
> >> > > I would appreciate any help. Thank you in advance!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.