ijiraq/cadcVOFS — Issue #2: Trap certificate expired warning t give a clear error
Author: igable
Created: 2012-03-05 20:08:27+00:00
State: open

When your proxy cert is expired you get way to scarry of a warning:

```
[igable@elephant junk]$ vcp vos:sfabbro/vostest/1235593p.ccd06 1235593p.ccd06
Traceback (most recent call last):
File "/home/igable/code/cadc/bin/vcp", line 7, in
execfile(__file__)
File "/home/igable/code/cadc/cadcVOFS/vcp", line 103, in
if not access(source,os.R_OK):
File "/home/igable/code/cadc/cadcVOFS/vcp", line 12, in access
return client.access(filename,mode)
File "/home/igable/code/cadc/cadcVOFS/vofs/vos.py", line 811, in access
return not self.status(uri,code=[404])
File "/home/igable/code/cadc/cadcVOFS/vofs/vos.py", line 819, in status
file=self.open(uri,view='data',head=True)
File "/home/igable/code/cadc/cadcVOFS/vofs/vos.py", line 773, in open
return VOFile(URL,self.conn,method=method,size=size)
File "/home/igable/code/cadc/cadcVOFS/vofs/vos.py", line 474, in __init__
self.open(URL,method)
File "/home/igable/code/cadc/cadcVOFS/vofs/vos.py", line 514, in open
self.httpCon.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1144, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/local/lib/python2.7/ssl.py", line 344, in wrap_socket
ciphers=ciphers)
File "/usr/local/lib/python2.7/ssl.py", line 121, in __init__
self.do_handshake()
File "/usr/local/lib/python2.7/ssl.py", line 283, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:499: error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired
```

We could trap this earlier.