473,662 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can not get Client Certificates to work with .NET COM+ component

I have a problem with .NET COM+ component which cannot access the private
key of the client certificate. The problem seems to be that when the user on
which privileges the COM+ server application is running is logged in, the
certificate can be accessed. But as soon as the user logs out the I get
forbidden errors on the server.

I've tried to put the certificate in the users personal store and in the
local machine personal store and granting privileges to it using
WinHttpCertCfg. exe.

I'm not entirely sure the problem is caused by the accessing the certificate
store, but in my mind it seems to be the only explanation on this.

The same source code is running also as a web service (we have COM+ Client
and Web Service Client which both are using the same DLL to call the web
service). But with the web service we haven't had any problems.

The public key of the certificate is exported to directory accessible by the
user running the component and the code to put the certificate to the request
is as follows:
this.m_ecdssrv. ClientCertifica tes.Add( X509Certificate .CreateFromCert File(
str_CertPath ) );

On the end point server the eventlog shows:
2008-01-31 06:30:08 192.168.158.2 POST /ecdsweb/ECDSResolver.as mx - 443 -
195.24.29.178
Mozilla/4.0+(compatible ;+MSIE+6.0;+MS+ Web+Services+Cl ient+Protocol+1 .1.4322.2407)
403 7 5

PS. I thought that this problem is caused by server so I posted this to
windows server forum where they thought that the problem is related to our
component and not to a server.

Feb 1 '08 #1
1 1608
"Tapio Lindqvist" <Tapio Li*******@discu ssions.microsof t.comwrote in
message news:81******** *************** ***********@mic rosoft.com...
>I have a problem with .NET COM+ component which cannot access the private
key of the client certificate. The problem seems to be that when the user
on
which privileges the COM+ server application is running is logged in, the
certificate can be accessed. But as soon as the user logs out the I get
forbidden errors on the server.

I've tried to put the certificate in the users personal store and in the
local machine personal store and granting privileges to it using
WinHttpCertCfg. exe.

I'm not entirely sure the problem is caused by the accessing the
certificate
store, but in my mind it seems to be the only explanation on this.

The same source code is running also as a web service (we have COM+ Client
and Web Service Client which both are using the same DLL to call the web
service). But with the web service we haven't had any problems.

The public key of the certificate is exported to directory accessible by
the
user running the component and the code to put the certificate to the
request
is as follows:
this.m_ecdssrv. ClientCertifica tes.Add( X509Certificate .CreateFromCert File(
str_CertPath ) );

On the end point server the eventlog shows:
2008-01-31 06:30:08 192.168.158.2 POST /ecdsweb/ECDSResolver.as mx - 443 -
195.24.29.178
Mozilla/4.0+(compatible ;+MSIE+6.0;+MS+ Web+Services+Cl ient+Protocol+1 .1.4322.2407)
403 7 5

PS. I thought that this problem is caused by server so I posted this to
windows server forum where they thought that the problem is related to our
component and not to a server.
I agree. This looks like a component problem. I don't see that it has
anything at all to do with web services, so perhaps you should post in the
microsoft.publi c.dotnet.framew ork.component_s ervices newsgroup.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Feb 1 '08 #2

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

Similar topics

1
1843
by: luciano | last post by:
Hi everyone, I want to create a application and a webservice, application connect to web service to activate, web sevice will create a certificate to authenticate this client, for each transaction between client anh server, server will check cerfiticate of client connect to it. How do i do that? Thanks for your reply.
4
11319
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 works fine. Now I am looking at how to validate the clients certificate programmatically. The client application sends to me with something like: .... Dim myHttp As HttpWebRequest = CType(WebRequest.Create(https://myserver/Receive.aspx),...
1
2931
by: Krishna | last post by:
Well, I got it working when running against my test server (IIS5 W2K svr, I will attach a sample of the code at the bottom of this message), but now I'm connecting to our client (Apache) I'm getting the following error: An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed: Unable to connect to the remote server.
0
1565
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me out. I am using IIS 5.1 on Windows XP professional. I am able to setup the SSL on my webserver using the 14 day trial period certificate. I setup the virtual directory using SSL connection required and Required Client certificates. I want to know...
5
1399
by: Kenneth P | last post by:
Hi all, I want to ensure some security in my asp.net apps. I wanna know that you is you comsuming my asp.net app. That's why I'm interested in finding out various ways to solve that problem. Because my comsumers always are companies and my asp.net product is the only on the market, then I can demand some security, I think.
1
3900
by: Deepak | last post by:
We retrieve data from a company called XYZ through httpwebrequest. The program is coded using VB.NET They have given a certificate to install. This certificate is included with the request object.I use httpwebrequest to retrieve data. The certificate is added to the client certificates collection. When this component is called from a windows application, I can retrieve the data. When this component is called from a web page, I get the...
5
4442
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client certificate, since it derives System.Web.Services.WebService class, and it's Context.Request.ClientCertificate is a single HttpClientCertificate object, is there a way to receive all the client certificates that is sent in the request? or does IIS...
1
3414
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
3
3164
by: mzarlenga | last post by:
I have a WCF .NET 3.0 self-hosted service and client. Both client and server are on the same system. My service opens a secure endpoint and is configured to demand a client-side certificate: BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Mode = BasicHttpSecurityMode.Transport; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
0
8432
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
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7365
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...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
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.