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 3 3051
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" <ha***@slac.stanford.edu> wrote in message
news:Pi*******************************@flora01.sla 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
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
Adil Hasan <ha***@slac.stanford.edu> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sheela |
last post by:
hi all,
I'm searching all around the web without any good answer, maybe you have
the right one.
I'm trying to fill&send a form on a site authenticated https via curl.
The problem is simply that...
|
by: Carl Waldbieser |
last post by:
I tried to adapt the instructions for building the M2Crypto module
(http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version
compatible with Python2.3, but I've had some mixed results....
|
by: Phillip |
last post by:
Hi.
I'm having some anoying trouble trying to establish a https connection.
I've even switched Python Versions (from 2.2.3 to 2.3.3), but the Errors
remain basically the same, allthough they now...
|
by: Adam |
last post by:
I have an application which interacts with a webserver over https
using client certificates.
Due to a bug in openssl 0.9.6, I upgraded to 0.9.7 and rebuilt python.
Now, when I access the page...
|
by: Terry Kerr |
last post by:
Hi,
I have an app that makes a https POST to a remote server that I have no
control over. The app runs fine in python 2.1.3 with socket.ssl
compiled with openssl-0.9.6, however it will not run...
|
by: Chuck Anderson |
last post by:
I use apache, Php and MySql on my Windows XP machine at home. I have
been doing so successfully now for a long time. However, I am now
trying to use fopen to open secure URLs (https) and having...
|
by: mahesh anasuri |
last post by:
Hi all,
I am new to this mailing list. Thankful if any one is using curl/linux version to and worked on Https.
I have created certificates (PEM format) for client and server using openSSL. I...
|
by: Chuck Anderson |
last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the
'net). I downloaded the Php Windows binary at php.net, unzipped it to
c:/Php5, changed my Apache config file to use Php5...
|
by: NoaGross |
last post by:
Hi,
I'm relly new in java and I have a problem.
I'm using java applet.
When using http all ok, but when trying to use https i get:
Java Plug-in 1.5.0_10
Using JRE version 1.5.0_10 Java...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |