HighTechTalks DotNet Forums  

Re: Certificate Policy to accept all - Not Working

Dotnet Security microsoft.public.dotnet.security


Discuss Re: Certificate Policy to accept all - Not Working in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Joe Kaplan \(MVP - ADSI\)
 
Posts: n/a

Default Re: Certificate Policy to accept all - Not Working - 06-16-2004 , 04:52 PM






ServicePointManager refers to .NET code that uses the classes in System.Net
such as HttpWebRequest to access the internet. It does not apply to
anything else on the machine.

Joe K.

"Susan" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am writing a Windows application (vb.net) and am using
the axwebbrowser to navigate to HTTPS sites. The
navigation to the sites produces the Security Alert dialog
stating that the site name does not match the certificate
name. This is okay and expected. I wrote a
CertificatePolicy to always accept certificates and then
assigned my new policy to the
ServicePointManager.CertificatePolicy. The problem is that
once I use the axwebbrowser to navigate to the site, the
dialog still comes up. It seems as though the policy
doesn't apply to the axwebbrowser. Any
ideas/help/comments/suggestions?

Thanks.



Reply With Quote
  #2  
Old   
Joe Kaplan \(MVP - ADSI\)
 
Posts: n/a

Default Re: Certificate Policy to accept all - Not Working - 06-17-2004 , 12:07 AM






Sorry, but I have no idea what the axwebbrowser is or how it works.

If it uses WinInet under the hood, then it is almost certainly possible for
it to behave this way, but that doesn't mean you can get it to.

Good luck,

Joe K.

"Susan" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I figured that it was probably something along those
lines. Do you know how I would go about using the response
from an HttpWebRequest to have the page show up in the
axwebbrowser? The ASP pages I am requesting have Web
Controls that need to usable once the page is visible in
the axwebbrowser.

thanks for you help.


-----Original Message-----
ServicePointManager refers to .NET code that uses the
classes in System.Net
such as HttpWebRequest to access the internet. It does
not apply to
anything else on the machine.

Joe K.

"Susan" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:1d1ae01c453d0$0db0cc90$a601280a (AT) phx (DOT) gbl...
I am writing a Windows application (vb.net) and am using
the axwebbrowser to navigate to HTTPS sites. The
navigation to the sites produces the Security Alert
dialog
stating that the site name does not match the
certificate
name. This is okay and expected. I wrote a
CertificatePolicy to always accept certificates and then
assigned my new policy to the
ServicePointManager.CertificatePolicy. The problem is
that
once I use the axwebbrowser to navigate to the site, the
dialog still comes up. It seems as though the policy
doesn't apply to the axwebbrowser. Any
ideas/help/comments/suggestions?

Thanks.


.




Reply With Quote
  #3  
Old   
Susan
 
Posts: n/a

Default Re: Certificate Policy to accept all - Not Working - 06-17-2004 , 03:19 PM



Well, I have changed it up a bit.

I have an aspx page that the axwebbrowser(activeX object)
navigates to. I did this since the webbrowser won't ever
be able to see the Certificate Policy.

I have implemented the Certificate Policy in my aspx page
and I know that I have to use .Net classes/methods. My
problem is that the WebRequest/HttpWebRequest and
WebResponse/HttpWebResponse classes allow access to the
web sites (overriding the certificate policy), but I have
only been able to determine that I can save the file or
access it's data and display the data on my aspx page.
This looks great but the controls on the page I am
accessing don't work since this isn't a link to the page
rather a copy of the html on the page. Is it possible to
link to the website?

Thanks.

Quote:
-----Original Message-----
Sorry, but I have no idea what the axwebbrowser is or how
it works.

If it uses WinInet under the hood, then it is almost
certainly possible for
it to behave this way, but that doesn't mean you can get
it to.

Good luck,

Joe K.

"Susan" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:1d6da01c453e9$4d08e350$a101280a (AT) phx (DOT) gbl...
I figured that it was probably something along those
lines. Do you know how I would go about using the
response
from an HttpWebRequest to have the page show up in the
axwebbrowser? The ASP pages I am requesting have Web
Controls that need to usable once the page is visible in
the axwebbrowser.

thanks for you help.


-----Original Message-----
ServicePointManager refers to .NET code that uses the
classes in System.Net
such as HttpWebRequest to access the internet. It does
not apply to
anything else on the machine.

Joe K.

"Susan" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:1d1ae01c453d0$0db0cc90$a601280a (AT) phx (DOT) gbl...
I am writing a Windows application (vb.net) and am
using
the axwebbrowser to navigate to HTTPS sites. The
navigation to the sites produces the Security Alert
dialog
stating that the site name does not match the
certificate
name. This is okay and expected. I wrote a
CertificatePolicy to always accept certificates and
then
assigned my new policy to the
ServicePointManager.CertificatePolicy. The problem is
that
once I use the axwebbrowser to navigate to the site,
the
dialog still comes up. It seems as though the policy
doesn't apply to the axwebbrowser. Any
ideas/help/comments/suggestions?

Thanks.


.



.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.