CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 3/23/2007 8:14:30 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
aploessl1
Asp.Net User
SSL and certficates3/23/2007 8:14:30 PM

0/0

I'm having trouble making a webrequest to a remote page which is using SSL. I get the following error:

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.TlsStream.CallProcessAuthentication(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at ASP.reports_qview_aspx.GetRmtData() in C:\Inetpub\wwwroot\ARC\reports\Myfile.aspx:line 420

Now can I specify a cert to use when making this request to avoid this error? All I simply have is the following to make the request.....(it is accessing an XML file)

 

            Request = HttpWebRequest.Create("https://myremotesite.com/myXMLfile.xml")
            wResponse = Request.GetResponse()
            Response.ContentEncoding = System.Text.Encoding.GetEncoding(wResponse.ContentEncoding)
            Response.ContentType = wResponse.ContentType
            Response.StatusCode = wResponse.StatusCode
            Response.StatusDescription = wResponse.StatusDescription
            


            

            Dim responseStream As Stream = wResponse.GetResponseStream()
            Message2.Text = "Data Recieved"
            
 

Sohnee
Asp.Net User
Re: SSL and certficates3/24/2007 9:36:32 PM

0/0

Depending on the type of certificate, you'll need to do the following (based on my experience with X509...)

1. Install the certificate to the local machine store, and grant access to IUSR, IWAM, ASPNET and NETWORKSERVICE users.

2. Attach the certificate to your request. (I exported the certificate and used the exported version to attach to the request - it will automatically get the private key from the certificate store if you've granted access.)

aploessl1
Asp.Net User
Re: SSL and certficates3/26/2007 3:48:57 PM

0/0

How do you specify in the request the cert to use?

Sohnee
Asp.Net User
Re: SSL and certficates3/27/2007 6:48:09 PM

0/0

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Windows Server 2003 Security Infrastructures: Core Security Features Authors: Jan de Clercq, Pages: 756, Published: 2004
MCSE Designing Security for a Windows Server 2003 Network: Exam 70-298 Authors: Neil Ruston, Elias N. Khnaser, Syngress, Laura E. Hunter, Rob Amini, Susan Snedaker, Chris Peiris, Pages: 800, Published: 2004
CYA Securing Exchange Server 2003 and Outlook Web Access: Cover Your A** by Getting it Right the First Time Authors: Henrik Walther, Patrick Santry, Pages: 317, Published: 2004
The Best Damn Windows Server 2008 Book Period Authors: Anthony Piltzecker, Susan Snedaker, Pages: 824, Published: 2008
Creating Client Extranets with Sharepoint 2003 Authors: Mark E. Gerow, Pages: 216, Published: 2006
Pro Open Source Mail: Building an Enterprise Mail Solution Authors: Curtis Smith, Pages: 423, Published: 2006
WebDav: Next-Generation Collaborative Web Authoring Authors: Lisa Dusseault, Pages: 452, Published: 2003
Brilliant Internet Authors: Dom Brookman, Pages: 336, Published: 2005
Microsoft Internet Explorer 6 Resource Kit: resource kit Authors: Microsoft Corporation, Microsoft Corporation, Pages: 551, Published: 2001
How to Do Everything with Windows XP Home Networking Authors: Dave Field, Andrew Brandt, Pages: 376, Published: 2004

Web:
Ecommerce Security - SSL Certificates - Network Solutions Ecommerce security is an important component to selling online. Protect your customer data with digital encryption from a verified SSL Certificate.
SSL Certificates Comodo Digital Server SSL Certificate Authority ... SSL certificates including EV SSL Certificate Wildcard Digital Certificate and UC Certificate Authentication from Comodo providing strong 256 bit encryption ...
SSL and certficates - ASP.NET Forums SSL and certficates. Last post 03-27-2007 2:48 PM by Sohnee. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Mailing list archives Subject, Re: SSL and certficates script. Date, Wed, 21 Nov 2001 00:17:17 GMT. On Tue, Nov 20, 2001 at 07:00:34PM -0500, MATHIHALLI,MADHUSUDAN (HP-Cupertino ...
SSL certificates. We offer cheap SSL certificates. ... 5 easy steps required to setup your own SSL certificate. Open a Ticket support and upgrade your account to dedicated ip ...
SSL Certificate Information Center - SSL Certificates & SSL from ... Learn how SSL security works and how VeriSign can secure your Web site with SSL Certificates by encrypting information and providing authentication.
SSL Certficates offered by Jennifer Web Design in Las Vegas SSL Certificates for your web site provided by Jennifer Web Design Marketing and Consulting.
thawte - SSL certificates with extended validation from thawte the ... thawte - thawte ev ssl certificates, thawte is a global certificate authority providing ssl certificate (SSL) products, 128-bit encryption and extended ...
SSL Certificates - Secure Your Data & Transactions Premium EV SSL Certificates provide the highest level of online assurance ... Traditional SSL Certificates cause certificate security errors (scaring away ...
SSL Certificates, Digital Certificate, Code Signing Certificates ... SSL Certificates to secure web sites and transactions, Digital IDs to secure and authenticate identities, Code Signing Certificates to secure applications, ...

Videos:
VeriSign SSL Certificates An overview of VeriSign SSL Certificates.
SSL Certificates Explained: By Swanand In Dis Video Swanand you explains SSL Certificate in Detail.
VeriSign Extended Validation SSL Certificates An overview of VeriSign EV SSL.
SSL Hacking and DNS Spoofing with Backtrack Using Ettercap to spoof SSL Certificates and view encrypted data in plain text. Spoofing DNS requests to redirect web traffic to a desired webpage.
Kaminsky on DNS rebinding attacks, other Web-based attack techniques Noted network security researcher Dan Kaminsky, director of penetration testing at IOActive, dives into his latest work around DNS rebinding attacks ...
Domains Register Domains SSL Security Certificates Domain, Domains, Register Domains, Cheap Domains, Free Web Hosting, Free POP3 Email Accounts, domains-free-hosting.com, domains-free-hosting.net
LocalGiftCertificates.com - The Easiest Way To Send The Perfect Gift! - Send Instant Gift Certificates for FREE What is LocalGiftCertificates.com? We are a search engine for Local Gift Certificates. We make it easy for you to locate and purchase the perfect, ...
Getting the Certificate Chain for TLS/SSL Using IE6, this short video shows how to get all the certificates necessary to implement TLS/SSL against that site.
Sniffing SSL secured logins with Ettercap A security video illustrating how easy it is to intercept traffic on a subnet. This demonstration uses oneway ARP poisoning on only the victim (TARGE...
Using browser certificates with OpenID and SilverStripe www.silverstripe.com www.openid.net Demo of how to use SilverStripe and OpenID with browser certificates to speed up the process of logging into a w...




Search This Site:










read from database and download to excel without displaying

vanishing page_load event

gallery module bug with localized dates

vb .net or c# .net

dotnet framework 2.0

migrating from dnn 3 to dnn 4 with source on isp site

a simple treeview question

treeview problem

including .aspx code on an .asp page

how to display user lists from aspnetdb in report form

references missing after refreshing project sandbox

problem w/ editurl in html of user control

integrating shopping cart with the yahoo small business

how to use a httpwebrequest and httpwebresponse?

getting rid of the horizontal rule in the module title.

asp.net dynamic dropdown menu

help on asp.net

yellow textboxes in dnn

create private assembly .. 3.1?

webmatrix & web service

help please!! repost -- somehow i locked the thread and really need help

personal url for each customer

auto format & property builder

reference control from template

¿aspnetdb.mdf readonly?

how to create a new module and make it work?

remember me / remember me not

profiles and access database

problem with stylesheet for login page

how to manually authenticate the user based on their guid.

 
All Times Are GMT