473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SslStream and HttpListener

I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my current
postback request operation. I have to listen to this ssl/http request on
port 443 but a different uri prefix. If I use HttpListener, can I then use
SslStream on the Request.InputStream to receive and decrypt data? I saw
examples on the net where a different port was used and configured using
httpcfg.exe tool but my constraint binds me only to 443 and since IIS owns
that port I cannot use this tool.

Dec 13 '07 #1
3 5003
Build an ASP.Net HttpHandler for that URI that handles the request, and pass
the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microsof t.com...
>I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener, can
I then use SslStream on the Request.InputStream to receive and decrypt
data? I saw examples on the net where a different port was used and
configured using httpcfg.exe tool but my constraint binds me only to 443
and since IIS owns that port I cannot use this tool.

Dec 13 '07 #2
But how do I retrieve the information in the waiting postback session?
HttpHandler and postback are two different sessions. And I may have several
of the postback sessions. The way I was thinking of differentiating was to
choose a unique uri prefix every time.

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
Build an ASP.Net HttpHandler for that URI that handles the request, and
pass the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microsof t.com...
>>I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener, can
I then use SslStream on the Request.InputStream to receive and decrypt
data? I saw examples on the net where a different port was used and
configured using httpcfg.exe tool but my constraint binds me only to 443
and since IIS owns that port I cannot use this tool.

Dec 13 '07 #3
You create an HttpRequest to the HttpHandler.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:6D**********************************@microsof t.com...
But how do I retrieve the information in the waiting postback session?
HttpHandler and postback are two different sessions. And I may have
several of the postback sessions. The way I was thinking of
differentiating was to choose a unique uri prefix every time.

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
>Build an ASP.Net HttpHandler for that URI that handles the request, and
pass the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microso ft.com...
>>>I have an asp.net website that my clients use via SSL. I need another
http communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener,
can I then use SslStream on the Request.InputStream to receive and
decrypt data? I saw examples on the net where a different port was used
and configured using httpcfg.exe tool but my constraint binds me only to
443 and since IIS owns that port I cannot use this tool.


Dec 14 '07 #4

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

Similar topics

0
by: Jakob Nielsen | last post by:
This is a question about partly .net sslStreams and partly about the certificates it uses. I can't seem to find a more specific group.. and since i am coding in c# :-) I try creating a sslStream...
3
by: Martin | last post by:
How does one set up basic authentication on an HttpListener? I know I need to set the HttpListener.AuthenticationSchemes to AuthenticationSchemes.Basic but then I'm unsure how and against what...
1
by: googlegroups | last post by:
Hello everyone, I need a new web server for our existing website and I don't want subscribe to the whole IIS way of doing things. I thought I would implement a custom web server using the new...
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
1
by: Chris Mullins | last post by:
We've been using the SSLStream class found in System.Net.Security to build a giant Sockets server that provides TLS encryption at the channel leve. Before .Net 2.0, we used an open-source...
0
by: John | last post by:
I am using SSLStream to send data between the client and server. From the client, 1) I am looking for a way to turn off the Encryption. In SSLStream, there is a READ-ONLY Encryption property....
1
by: Dubravko Sever | last post by:
Hi, I have problem with SSLStream. I'm using it with p12 certificate and it works well when I running my code as console application (manully called). But problem starts when I tryint run it as...
0
by: ntuyen01 | last post by:
Hi all, I want to use the SSLStream with the cipher (TLS_RSA_WITH_AES_128_CBC_SHA) to get the handshake with my server, but I not sure where I can start. I do it in C# 2.0 Here is my code: ...
1
by: nevviin | last post by:
Hi, I have developed a VB.NET windows application to read mails from the server. I am using tcpclient object to read mail from mail server. I am uisng the IMAP and POP protocols for reading...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.