473,782 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET SSL Invalid Cert Problem

Tom
Hello,
I am running into a roadblock with an app I am writing to pull
an HTML doc from a SSL secured internal website. My app works fine
to sites with valid certs, but dies to my internal site. The internal site
has
a OpenSSL generated cert but the issuer is unknown. I expect this to be
always be the case. My problem is that I cannot seem to find a way to
tell VB.NET to ignore the cert's status. I have found some examples for
prior versions of VB, but that doesn't help much. Any input would be
greatly appreciated!!

Sample Code:

On Error Resume Next

Dim myRequest As WebRequest =
WebRequest.Crea te("https://10.4.4.4/cgi-bin/notice/notice.html")

If Err.Number <> 0 Then
Console.WriteLi ne("Error: " & Err.Number & " " & Err.Description )
Err.Clear()
End If

Dim myResponse As WebResponse = myRequest.GetRe sponse()

If Err.Number <> 0 Then
Console.WriteLi ne("Error: " & Err.Number & " " & Err.Description )
Err.Clear()
End If
Dim strm As Stream = myResponse.GetR esponseStream()
Dim sr As StreamReader = New StreamReader(st rm)
Dim sText As String = sr.ReadToEnd()

Console.WriteLi ne(sText)
myResponse.Clos e()
strm.Close()
myResponse = Nothing
strm = Nothing
sr = Nothing

Thanks in advance!

Tom

SearchString: BlueRhinoDance

Jul 17 '05 #1
0 2226

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1711
by: Dmitry Akselrod | last post by:
Hello everyone, I am in the process of implementing an internal Certificate Authority on a client's network. The CA will issue certificates to several intranet web apps that will be accessible to remote users. I would like to programmatically add the Root CA cert to the users' Trusted Root CA store. I have reviewed dseveral articles offering example code on how to achieve this using the CEnroll ActiveX control, incluing MS KB...
0
1368
by: Guy Macon | last post by:
"Alan J. Flavell" <flavell@ph.gla.ac.uk> wrote: > But the character encoding scheme which is advertised from an HTTP > server via the MIME "charset=" is authoritative, according to RFC2616, > and this attribute should not be omitted according to security alert > CA-2000-02, Just so everything is in one convenient spot for anyone reading this, here are some references. The trusecure.com one is rather chilling...
6
1621
by: Brett | last post by:
I haven't seen any request for MS Certitified C# developers during my current job search. Is there any value to getting the single cert (as opposed to the four)? I don't have quite as much C# experience and believe the cert may compensate for some of that. Is that a valid reasoning? Thanks, Brett
1
1269
by: Grey | last post by:
i have set up a web application. I want to know that how to integrate it with SSL cert?? If I got the cert already, how can I set the web server in order to be SSL enable web ?? Million Thanks..
3
1490
by: Param R. | last post by:
Hi all, I have an aspx page that needs to call a remote website that is protected by client cert authentication. I have installed the client cert and set permissions for IIS_WPG as per http://support.microsoft.com/default.aspx?scid=kb;en-us;817854. I then exported the cert to a DER encoded file. Now here is my code:- Dim h as httpwebrequest h = Ctype(WebRequest.Create(strurl), httpwebrequest)
1
2981
by: romiko2000 | last post by:
Hi Folks, I got a weird problem, I create an XMLWriter to post a document via the webrequest stream and after running a network trace, I notice the data is prefixed with 3 invalid characters! The invalid characters are: ef bb bf, at the top of the stream, which are . Why is this occuring, I am totally baffled by this? Here is the stream:
7
4965
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already developed significant content for the C programming language that is available at: https://www.securecoding.cert.org/ by clicking on the "CERT C Programming Language Secure Coding Standard"
0
1205
by: Vadim Grinshpun | last post by:
I'm using a certificate to sign an XML message (encrypted data). When I try to use SignedXML.VerifySignature(cert, false) - it always returns false. It decrypts fine, but the signature verification is a problem. And when I attempt to re-sign the same data with the same cert (which I assume has the same key) on the same computer I get a different didgest value and a
0
1487
by: hepsubah | last post by:
I'm trying to capture a client cert in my ASP.NET application, and use that cert as the client cert for a call to secure web service. I've used the following code, but am getting a 403 error on the invocation of the service. All the service is supposed to do is return the subject of the passed cert (I'll do more with it later) ...
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.