473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem Accessing web service over SSL

Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal
Nov 23 '05 #1
6 5430
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #2
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #3
Its already disabled. Yesterday I was able to access the web service using a
Windows application but still no luck with the web app. Also, if I try and
set a web reference to the web service using vs.net, I can see all the web
methods but get the error message "The underlying connection was closed:
Could not establish secure channel for SSL/TLS. The message received was
unexpected or badly formatted"

--
Siddharth Aggarwal
"Brad Roberts" wrote:
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #4
Its already disabled. Yesterday I was able to access the web service using a
Windows application but still no luck with the web app. Also, if I try and
set a web reference to the web service using vs.net, I can see all the web
methods but get the error message "The underlying connection was closed:
Could not establish secure channel for SSL/TLS. The message received was
unexpected or badly formatted"

--
Siddharth Aggarwal
"Brad Roberts" wrote:
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #5
My final solution:

- Use com+ as discussed in the following msdn article (
http://msdn.microsoft.com/library/de...l/secmod27.asp )

- Use the library provided by mentalis
(http://www.mentalis.org/soft/projects/seclib/)

Both these solutions are working fine for me on Windows XP and 2003.

Make sure you give aspnet and network service accounts permission to the
keys of the certificate. (C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys)

Its amazing how poorly documented this particular problem is. Its taken me a
whole week to finally get it working smoothly.

--
Siddharth Aggarwal
"Siddharth" wrote:
Its already disabled. Yesterday I was able to access the web service using a
Windows application but still no luck with the web app. Also, if I try and
set a web reference to the web service using vs.net, I can see all the web
methods but get the error message "The underlying connection was closed:
Could not establish secure channel for SSL/TLS. The message received was
unexpected or badly formatted"

--
Siddharth Aggarwal
"Brad Roberts" wrote:
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #6
My final solution:

- Use com+ as discussed in the following msdn article (
http://msdn.microsoft.com/library/de...l/secmod27.asp )

- Use the library provided by mentalis
(http://www.mentalis.org/soft/projects/seclib/)

Both these solutions are working fine for me on Windows XP and 2003.

Make sure you give aspnet and network service accounts permission to the
keys of the certificate. (C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys)

Its amazing how poorly documented this particular problem is. Its taken me a
whole week to finally get it working smoothly.

--
Siddharth Aggarwal
"Siddharth" wrote:
Its already disabled. Yesterday I was able to access the web service using a
Windows application but still no luck with the web app. Also, if I try and
set a web reference to the web service using vs.net, I can see all the web
methods but get the error message "The underlying connection was closed:
Could not establish secure channel for SSL/TLS. The message received was
unexpected or badly formatted"

--
Siddharth Aggarwal
"Brad Roberts" wrote:
I may have had something similar before. It seems that the SSL connection may
not get established if the XP box has the local security/encryption setting
for using "FIPS compliant encryption" set. I am currently on a 2000 box so I
can't recall exactly where it is...

"Siddharth" wrote:
Hi all,

I have been trying to access a web service over HHTPS but have not been
successful. The client has provided us with a pfx file that is password
protected. I successfully exported the certificate to .cer format.

My code is using WSE to access the web service. I basically load the
certificate from the personal store and attach it to the web service proxy
object. However, I keep getting the error: "The underlying connection was
closed. Could not establish secure channel for SSL/TLS." The certificate has
been given the necessary aspnet permissions and I can even access its various
properties from my code.

Any help regarding this matter will be highly appreciated. I am using .Net
Framework 1.1 SP1 on a XP box. The client's WS is written in java and worked
fine before they enabled SSL. I am guessing the problem has to do with the
private key that probably does not get exported to .cer format.
--
Siddharth Aggarwal

Nov 23 '05 #7

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

Similar topics

2
2180
by: Keith E. | last post by:
I have implemented a Web Service on an IIS 5.0 platform using the ASP listener I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its...
1
3932
by: Eirik Brattbakk | last post by:
Hi I have some problems accessing a soap service made in c# using an ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and CSoapWininetClient as template arguments with my stub...
2
6068
by: John | last post by:
Hi I have a vb.net service app which I have set to run as user. When I try to install the service via InstallUtil, I provide user/pass for the administrator but the service fails to install. I...
4
1687
by: Steven | last post by:
I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing through C#.NET. The Web Service takes an string containing a formatted xml read through StreamReader. The problem I am...
3
7645
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
1
2224
by: Jake Henderson | last post by:
I am developing apps in VWD Express and SQL Svr 2005 Express. I currently have a web server running Win2K3 SBS W/IIS V.6.0 & ASP.NET 2.0. I am currently using a test site that is only availible on...
1
1946
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
0
1517
by: jacorona | last post by:
Hello all, I have found a problem accesing a web service hosted in IIS 5.0 in a W2K box. The web service site is configured to accept both integrated windows authentication and client certificates....
4
4449
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
0
7166
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...
0
7386
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,...
1
7106
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
7534
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
5689
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,...
0
4749
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...
0
1601
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 ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
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...

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.