473,410 Members | 1,952 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,410 software developers and data experts.

Force .Net to do TLS only

[PocketPC2003, C#, .Net CF 1] <--> [IIS6]
We post some xml to https as shown below. The server supports SSL 3.0 and
TLS. We wnat to force the PocketPC 2003 application to only use TLS for FIPs
compliance. Is that possible? I see in .Net non-CF that you can do
something like System.Net.ServicePointManager.SecurityProtocol =
SecurityProtocolType.Tls; but that does not sem to be supportted on CF.

Thank you!

string stream = ...
string url = "https://myserver.com/myreceiver.aspx";
byte[] bytes = Encoding.UTF8.GetBytes(stream);
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);
request.Method = "POST";
request.Timeout = 60000; //What would be best Timeout value?
//request.ContentLength = bytes.Length;
request.AllowWriteStreamBuffering = true;
//Note: must have utf-8 per W3C
request.ContentType = @"text/xml; charset=""utf-8""";
Stream requestStream = request.GetRequestStream();
requestStream.Write(bytes, 0, bytes.Length);
requestStream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream st = response.GetResponseStream();
StreamReader myReader = new StreamReader(st);
responseFromServer = myReader.ReadToEnd();
st.Close();
myReader.Close();
response.Close();


Dec 16 '05 #1
5 5496
Hi devgrt,

In .NET Compact Framework 1.0, the
System.Net.ServicePointManager.SecurityProtocol is not supported. So, I
don't think we can specify the security protocol in CF.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 17 '05 #2
Do you know of any way this could be accomplished? If it is not possible to
specify in CF is there an under-the-hood way to do it. It is vital since
FIPs requires our application to force TLS on the client side. One thing I
am hoping for is that Eldos Secureblackbox will have a .Net CF version of
their product in the near future and we can use that
(http://www.eldos.com/sbb/) but must wait until they release for CF and then
hope that works on PocketPC apps (vs apps compiled for CE).
Thank you!

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Lk**************@TK2MSFTNGXA02.phx.gbl...
Hi devgrt,

In .NET Compact Framework 1.0, the
System.Net.ServicePointManager.SecurityProtocol is not supported. So, I
don't think we can specify the security protocol in CF.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 17 '05 #3
Hi,

I think we can achieve this by using PInvoke. You can try to post in the
following newsgroup, so that more professionals will provide their
assistance there.

microsoft.public.pocketpc.developer

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 20 '05 #4
I posted in microsoft.public.pocketpc.developer on 12/12 and
microsoft.public.pocketpc.developer.networking on 12/9 but have had no
response. This is a pretty critical for us issue and we would really
appretaite any help in getting it to work -- thanks!
p.s. I am pretty confident Eldos product will work but the experimental
version is still a month off.

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:27**************@TK2MSFTNGXA02.phx.gbl...
Hi,

I think we can achieve this by using PInvoke. You can try to post in the
following newsgroup, so that more professionals will provide their
assistance there.

microsoft.public.pocketpc.developer

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 20 '05 #5
Hi devgrt,

You can also try the microsoft.public.win32.programmer.wince newsgroup,
since there are more people in that one.

I'm not quite familiar with pocket pc development. In this case, since this
issue is critical and urgent for you, I suggest you try to contact
Microsoft PSS for it. You will find their contact information from the
following link:

http://support.microsoft.com/default...;OfferProPhone

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 21 '05 #6

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

Similar topics

2
by: Jonathan Driller | last post by:
I am attempting to block repeat downloads from a site. I need to have a landing page pass a referer to a secured page. I have tried a meta refresh redirect and several Javascript redirect...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: Raquel | last post by:
FORCE APPLICATION command is valid only at the 'instance' level. Why is this so? An instance may contain many databases. So, what command do I give if I want to force applications from a particular...
3
by: Arran Pearce | last post by:
Hi, If i have a abstract class (e.g. Class1) and then i make Class2 which inherits from Class1. I have a method in Class1 which i want to force Class2 to run at some point. Is there a way i...
7
by: moondaddy | last post by:
I'm building a page in vb.net with several user controls on it. I'm using user controls instead of a frames page since I've seen this recommended many times in this user group. I want just one of...
4
by: moondaddy | last post by:
There are different times when I will have a group of checkboxes and need to force only one to be checked at a time. I would also like to do this client side and not require a postback. These...
11
by: ago | last post by:
Inspired by some recent readings on LinuxJournal and an ASPN recipe, I decided to revamp my old python hack... The new code is a combination of (2) reduction methods and brute force and it is quite...
1
by: Mark A | last post by:
DB2 ESE 8.2.3 (FP10) for Linux We are experiencing a connection hang of 10 - 15 minutes in the following HADR and automatic client reroute scenario: 01 server is primary database 02 server is...
0
by: comp.lang.php | last post by:
I have a form that when you click the "Generate Report" submit button, it will force download a CSV file, required for this project. On the very same page you also have a "Search" submit button,...
1
by: David Greenberg | last post by:
Hi I have a character field (char ot varchar) that I want to force only to contain numeric characters. Can that be done by way of defining a constraint on the field ? or by any other way in the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.