473,654 Members | 3,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

certificate based web call fails under iis (urgent!)

hallo -
I am making a web request (actually a web service call) from within my
web service.

this works fine under the developement web server - but fails under
IIS with:
>System.Net.Web Exception: The request was aborted: Could not create SSL/TLS secure channel.
anyone have any suggestions?

I have tried various impersonation / permissions scenarios with no
success.

This is urgent as I'm currently looking like a tit that doesn't know
what he's doing!

thanks,
Oli.

the code is trivial:

_x509Certificat e = new X509Certificate (fullFilePath, password);
..
..
requester.Clien tCertificates.A dd(_x509Certifi cate);

May 11 '07 #1
5 3741
On May 11, 9:29 am, olihar...@googl email.com wrote:
hallo -
I am making a web request (actually a web service call) from within my
web service.

this works fine under the developement web server - but fails under
IIS with:
System.Net.WebE xception: The request was aborted: Could not create SSL/TLS secure channel.

anyone have any suggestions?

I have tried various impersonation / permissions scenarios with no
success.

This is urgent as I'm currently looking like a tit that doesn't know
what he's doing!

thanks,
Oli.

the code is trivial:

_x509Certificat e = new X509Certificate (fullFilePath, password);
.
.
requester.Clien tCertificates.A dd(_x509Certifi cate);
Did you google it? Lots of stuff got returned

http://www.google.com/search?sourcei...secure+channel
May 11 '07 #2
hi Larry - yeah been googling most of the afternoon - been stuck on
this ~ 4 hours now :(

O.
May 11 '07 #3
I have not installed the certificate in any "certificat e store" - it
get's loaded directly off the file system as per:

_x509Certificat e = new X509Certificate (fullFilePath, password);

is there some "microsoft way" that I (begrudgingly) have to follow
here? - to my knowledge the cert *must* be loaded from the file system
- but what a lot of other people seem to do is store it, then export
it....

running XP pro.

desperate....

O.

May 11 '07 #4
I think this may be failing under IIS because the certificate is not
valid.

*I already know the certificate is not valid and still want to use
it ! *

I think it's not valid because it is not signed by a CA such as
Verisign.

if I work directly with the Certificate Store like this:

X509Store store = new X509Store(Store Name.Root,
StoreLocation.L ocalMachine);
store.Open(Open Flags.ReadOnly) ;
X509Certificate 2Collection col =
store.Certifica tes.Find(X509Fi ndType.FindByIs suerName, "SAVVIS",tr ue);

I can use that last parameter in "Find" to return only valid Certs -
hence indicating that the cert is not valid (there's surely a better
way).

I think it's perfectly reasonable to use an invalid cert in this way -
anyone got any comments on that - or suggestions on where to go from
here?

ta,
O.
May 11 '07 #5
**** FIXED **** !!!! :) :) :)
.....sort of :(

in order to get this to work (summary: Certificate based security
calling web service from within a web service - only broken under IIS
- works find under dev. server):

- install cert in local machine certificate store
- give ASPNET account permissions on that cert:
winhttpcertcfg. exe -g -c LOCAL_MACHINE\R oot -s "SAVVIS" -a
"ASPNET"

....this gives me a deployment and managability headache grrrr. under
the .net 2.0 dev server I don't need any of this, and can read the
cert directly from disk. If anyone has any ideas how to do that under
IIS *please contact me* !!

O.

May 11 '07 #6

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

Similar topics

2
11693
by: IWP506 | last post by:
I just CANNOT figure out what is wrong with this! ------ $op1f = fopen("./test.txt","r"); $op1 = fread($op1f, filesize($op1f)); ------
14
24221
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". This all works in Internet Explorer, but doesn't work with Firefox. In both IE and Firefox this works: <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt" version="1.0"?>
1
1625
by: Dennis.Hoffman | last post by:
I have been using XML-RPC to get information from one of our remote servers. To improve security, the server now has a certificate installed, and when I try to access it, I get an 'Unauthorized' exception. Is there an xmlrpclib module that supports (client-side) certificate-based authentication? If so, where can I get it, and what is involved in doing the authentication? If not, what are my options? thanks
4
1232
by: Alien2_51 | last post by:
I have a commerce server application that's accessible from our internal users via integrated security and accessible to external users via certificate and ssl. I have a problem that's only occuring only when the user is authenticated using the certificate. I want to run the application debug mode but I'm having problems getting the debugger to start I'm getting an "Unable to start debugging on the web serv. You do not have permission to...
1
1601
by: Charles | last post by:
Ok, I have an Access 97 GUI with SQL 7.0 backend. On one database I'm constantly getting a call fail. I'm not sure why. From the user accounts it seems to happen mostly when they have the form open, but are static...doing something else. They begin to enter a record and when they go to move to another record or save they get the error, but not everytime. When the error occurs, they have to close out of the database and open it back...
1
1374
by: maflatoun | last post by:
Hi, We have a form based authentication implemented on our site that has been working great for over 2 years for oursite.com, oursite.ca and oursite.co.uk. However, today I found out that oursite.de is failing (nothing happens). All other directories that require authentication are redirected to our login.aspx page file sending the ReturnUrl=../ pagetoaccess.aspx but when we access our site using .de the ReturnUrl=... part is missing...
2
2292
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have the below C# definitions and function call to an unsafe C++/CLI function in an external dll. When debugging the calls step by step everything seems to work, but if I just run everything through without stopping I get the following error: " Debug Assertion Failed! Program: .....myprogram.. File: dbgheap.c
2
8402
by: rdilipk | last post by:
I am posting at the end of this post some code that P/Invoke's SetSystemTime to set the local system time. This call fails -- i.e the time is not set and the API returns false. However calling Marshal.GetLastWin32Error immediately afterwards returns an errorcode of 0 indicating that the operation somehow executed successfully. This is a plain vanilla console app written in C#. It runs on vista and has a manifest embedded in it that...
2
8006
by: knellim | last post by:
I can connect to DB2 on the command line on the server. db2=>connect to mytest user knellim using xxxx Database Connection Information Database server = Apache Derby CSS10050 SQL authorization ID = KNELLIM Local database alias = MYTEST
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8489
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
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
6161
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
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
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.