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

Web Service Call Using Digital Certificates

bs
Hi,

I am currently having a problem calling a web service that is secured using
a digital certificate. I set up a Windows application to make a call to the
service and it works fine. However when I make a call from my ASP.NET page
it fails with "System.Net.WebException: The request failed with HTTP status
403: Forbidden". The code that I am using to make the call in both
instances is:
MyWebService myService = new MyWebService();

myService.ClientCertificates.Add(X509Certificate.C reateFromCertFile(@"C:\myC
ert.cer"));

myService.HelloWorld();

I think the problem may be related to permissions. The Windows application
runs using my account so I changed IIS to run as me as well. I have set
<identity impersonate="true"> in the web.config and I have checked using my
ASP.NET application that I am running under this account.

The Root CA certificate is installed under the "Current User" and the "Local
Computer" certificate stores and the client certificate is installed in both
these stores as well.

If anyone could help me solve this problem it would be great.

Ben
Nov 18 '05 #1
0 1215

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

Similar topics

7
by: Guangxi Wu | last post by:
Hi all, Happy New Year. I am using SignedXML and an X509 certificate to digitally sign a SOAP message body and put the signature in the SOAP header for a B2B business application. Can you...
1
by: Jason MacKenzie | last post by:
We have a webservice our windows apps call that reads the registry of the web server to get connection strings etc. This is all on our intranet behind a firewall. I should say, we have this all...
1
by: shabbir.bharmal | last post by:
Hello everyone i am developing one site related to etendering in this i want to use digital certificates for validation. I am using PHP & MySql. I am not having any idea of using this digital...
0
by: tsalikivenu | last post by:
Hi i have problem with loading digital certificates.i am currently using asp.net 2003.i have installed wse2.0 here is my code..i want it to load digital certficates to list box..it is...
0
by: =?Utf-8?B?RWRkaWUgTGFzY3U=?= | last post by:
Hello everybody, I am struggling with this issue for a few days now. I need to create an automatic process to daily download a file from a server that requires a digital certificate. The...
4
by: =?Utf-8?B?QXNpbQ==?= | last post by:
Hello, I have a question about restricting access to web services. We have public web services which are available for clients to request data, and we do have some private web services which...
5
by: nomad | last post by:
Hi, I was wondering if it was possible to add a service reference to a web service which requires an SSL certificate to authenticate? If not, if I have the SSL certificate installed via mmc...
1
by: bahamas | last post by:
We have a requirement where we need to enforce digital certificates on client machines. In abstract, the requirement is to have digital certificates installed in a limited set of machines in the...
3
by: Al Reid | last post by:
I need a way to uniquely identify the machine, IP Address or user that called a web service. We are attempting to loosely integrate two applications where both apps, running on a single machine,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.