Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem connecting to https using ZSI (openssl problem) - python2.3

Reply
Thread Tools

Problem connecting to https using ZSI (openssl problem) - python2.3

 
 
Adil Hasan
Guest
Posts: n/a
 
      01-28-2004

Hello,
I'm having problems trying to use ZSI to connect to a https url.
I give the command and I get prompted for my X509 cert pass-phrase, but
the program dies with an openssl error.

Here's my code:

from ZSI import *
u=''
n='https://shahzad.fnal.gov/edg-voms-admin/uscms/services/VOMSAdmin'
b = Binding(url=u,ns=n, ssl=1, \
host='shahzad.fnal.gov',port=8080, \
cert_file='/home/hasan/.globus/usercert.pem', \
key_file='/home/hasan/.globus/userkey.pem')
b.listCAs()

The traceback I get is:
Enter PEM pass phrase:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
line 28, in __call__
requesttypecode=TC.Any(self.name, aslist=1))
File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
line 131, in RPC
self.Send(url, opname, obj, **kw)
File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
line 184, in Send
self.h.connect()
File "/usr/local/python2.3/lib/python2.3/httplib.py", line 961, in
connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
File "/usr/local/python2.3/lib/python2.3/socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile)
socket.sslerror: (1, 'error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol')

Any ideas about this? Does anyone know how to solve this problem? I have
seen one post here with a similar problem, but haven't seen any
resolution.

Help!

thanks, adil
 
Reply With Quote
 
 
 
 
C GIllespie
Guest
Posts: n/a
 
      01-28-2004
Hi,

Your best bet would be to ask this question in the python webservices
mailing list (see link below)

Colin

http://sourceforge.net/mailarchive/f...?forum_id=1729



"Adil Hasan" <(E-Mail Removed)> wrote in message
news(E-Mail Removed) c.stanford.edu...
>
> Hello,
> I'm having problems trying to use ZSI to connect to a https url.
> I give the command and I get prompted for my X509 cert pass-phrase, but
> the program dies with an openssl error.
>
> Here's my code:
>
> from ZSI import *
> u=''
> n='https://shahzad.fnal.gov/edg-voms-admin/uscms/services/VOMSAdmin'
> b = Binding(url=u,ns=n, ssl=1, \
> host='shahzad.fnal.gov',port=8080, \
> cert_file='/home/hasan/.globus/usercert.pem', \
> key_file='/home/hasan/.globus/userkey.pem')
> b.listCAs()
>
> The traceback I get is:
> Enter PEM pass phrase:
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 28, in __call__
> requesttypecode=TC.Any(self.name, aslist=1))
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 131, in RPC
> self.Send(url, opname, obj, **kw)
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 184, in Send
> self.h.connect()
> File "/usr/local/python2.3/lib/python2.3/httplib.py", line 961, in
> connect
> ssl = socket.ssl(sock, self.key_file, self.cert_file)
> File "/usr/local/python2.3/lib/python2.3/socket.py", line 73, in ssl
> return _realssl(sock, keyfile, certfile)
> socket.sslerror: (1, 'error:140770FC:SSL
> routines:SSL23_GET_SERVER_HELLO:unknown protocol')
>
> Any ideas about this? Does anyone know how to solve this problem? I have
> seen one post here with a similar problem, but haven't seen any
> resolution.
>
> Help!
>
> thanks, adil



 
Reply With Quote
 
 
 
 
Adil Hasan
Guest
Posts: n/a
 
      01-28-2004

Hello,
As a follow up to this. I noticed that the port that I was
contacting the server on was not correct. Now, I have moved forward
to an access denied message (I'll post that error in another news group).

Hope this is helpful, adil


On Tue, 27 Jan 2004, Adil Hasan wrote:

>
> Hello,
> I'm having problems trying to use ZSI to connect to a https url.
> I give the command and I get prompted for my X509 cert pass-phrase, but
> the program dies with an openssl error.
>
> Here's my code:
>
> from ZSI import *
> u=''
> n='https://shahzad.fnal.gov/edg-voms-admin/uscms/services/VOMSAdmin'
> b = Binding(url=u,ns=n, ssl=1, \
> host='shahzad.fnal.gov',port=8080, \
> cert_file='/home/hasan/.globus/usercert.pem', \
> key_file='/home/hasan/.globus/userkey.pem')
> b.listCAs()
>
> The traceback I get is:
> Enter PEM pass phrase:
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 28, in __call__
> requesttypecode=TC.Any(self.name, aslist=1))
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 131, in RPC
> self.Send(url, opname, obj, **kw)
> File "/usr/local/python2.3/lib/python2.3/site-packages/ZSI/client.py",
> line 184, in Send
> self.h.connect()
> File "/usr/local/python2.3/lib/python2.3/httplib.py", line 961, in
> connect
> ssl = socket.ssl(sock, self.key_file, self.cert_file)
> File "/usr/local/python2.3/lib/python2.3/socket.py", line 73, in ssl
> return _realssl(sock, keyfile, certfile)
> socket.sslerror: (1, 'error:140770FC:SSL
> routines:SSL23_GET_SERVER_HELLO:unknown protocol')
>
> Any ideas about this? Does anyone know how to solve this problem? I have
> seen one post here with a similar problem, but haven't seen any
> resolution.
>
> Help!
>
> thanks, adil
>

 
Reply With Quote
 
John J. Lee
Guest
Posts: n/a
 
      01-29-2004
Adil Hasan <(E-Mail Removed)> writes:

> Hello,
> As a follow up to this. I noticed that the port that I was
> contacting the server on was not correct. Now, I have moved forward
> to an access denied message (I'll post that error in another news group).

[...]

You might have better luck using axis from Jython. ZSI seems to be
fairly buggy (maybe that's not altogether fair: the protocols are
apparently still a bit dodgy too, so the fault could be partly be on
that end). I had some success with axis and SOAP/WSDL.


John
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ZSI receiving complex type problem catherine_jervis@hotmail.com Python 0 02-05-2008 07:29 PM
ZSI, SOAP and .NET web services - problem Jaroslaw Zabiello Python 9 03-27-2007 03:19 AM
Digest MD5 authentication over using ZSI trapeze.jsg@gmail.com Python 1 09-21-2005 08:26 AM
Problems using ZSI web service from .NET Michiel Python 0 01-22-2004 03:49 PM
SOAP using ZSI talking to .NET Web Service Russell Python 0 08-19-2003 04:53 AM



Advertisments