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

Server certificate validation <-> UnmanageCode permission

Hi.

I'm writing a web control that inherits from
"System.Windows.Forms.UserControl" and uses SSL protocol to communicate with
the web server. The only way I've found to validate the server certificates
is using the "CertificatePolicy" static property of the class
"ServicePointManager". The problem is that to use that property my code
needs "UnmanagedCode SecurityPermission" and that would be an important
drawback if I want my web control to be used over the Internet from any
client machine.

The questions are:

- Why do I need "UnmanagedCode SecurityPermission" to set that property?

and more important,

- There is any way to avoid the need of it?

Thanks,

Diego Rivero.
Nov 17 '05 #1
0 1104

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

Similar topics

8
by: Lenn | last post by:
Hello, I've been struggling with this for couple of days now. All I want to do is to enable SSL protocol on the webserver. I want to be able to generate and sign my own certificates. I used...
4
by: Matt Frame | last post by:
I am working on a special ASP.Net application that receives files from customers. The connection is made via HTTPS and the client sends the file as a POST to my ASP.Net listener. All of this...
4
by: jens Jensen | last post by:
Hello, I was given the task to build a .Net client that will talk to IBM integration server via HTTP post. The idea is that each http packet exchange should be authenticated via X09 "client...
0
by: alessio.cesana | last post by:
Hi everybody, hope someone can help me. I have to send an authenticated mail message throught an ssl smtp server using .net 1.1 framework libraries. The problem is that server certificate is not...
1
by: Yogesh Chawla - PD | last post by:
Hello All, I work for the State of Wisconsin and we are trying to build a reference implementation using python. Our goals are this: 1) establish an HTTPS connection between our client and...
5
by: =?Utf-8?B?RG9taW5v?= | last post by:
Greetings all, I'm trying to send an e-mail from a Windows application thru MS Exchange Server 2007 that is in my LAN. The setup for Exchange server is very basic, it's running on Server 2003...
2
by: Yves Gagnon | last post by:
Hi, I need to develop a WCF on a ms certificat autority that will revoke an existing certificate. My question: how to do that ? witch tool (c#) ? Do you have sample code that do that ? Thanks...
5
by: =?Utf-8?B?dXNmaW5lY2F0cw==?= | last post by:
I'm new to asp.net. I'm trying to follow the tutorial walkthroughs and have got a few done. Now I'm doing the one about validating input, and I've run into some problems. In particular, I am...
3
AnuSumesh
by: AnuSumesh | last post by:
Hi, I have developed one application which should be accessible only if valid certificate from particular CA is installed on client browser . I am using VBscript for writing the code. I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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
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.