<html>
<head></head>
<body>
<p>Sorry for the last reply, but I was wrong, it's true that from VenueClient, Manage Certificates works perfectly... but, now, CertificateManager3.py doesn't work... &nbsp;shows the same error that previosly shows from VenueClient. It's like if they swap :P.</p>
<p>Sorry for the inconvenience and confirm some that, really, don't fix the problem.</p>
<p>Regards!</p>
<br/>
<div><em>El dia 15 mar 2010 01:05, Christoph Willing &lt;c.willing@uq.edu.au&gt; escribi&oacute;:</em></div><blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>On 15/03/2010, at 9:06 AM, Christoph Willing wrote:</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Jesus,</p>
<p>We have seen this problem previously and have already implemented a  fix (similar to the one suggested by Marcelino below) but its  obviously an incomplete fix - so thanks for reporting the problem.</p>
<p>I've changed my system language setting to Spanish and I can  replicate your problem. I found that I can manage my certificates by  running CertificateManager3.py from a shell - maybe you could do  that until a proper fix is implemented</p>
</blockquote><br/>
<p>Could you try the following fix and report the result please? If  successful (it works here) it can be applied to the AG svn repository  so that future package releases will include it.</p>
<p>In the file /usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/ Toolkit.py, find the line<br/>
os.environ['LANG'] = "C"<br/>
and replace it with<br/>
locale.setlocale(locale.LC_ALL, 'C')</p>
<p>Please ensure that the indentation of the new line is the same as the  deleted line.</p>
<p>At the beginning of this same file, just after:<br/>
import socket<br/>
please add a new line with:<br/>
import locale</p>
<br/>
<p>Thanks to Marcelino for the suggested fix.</p>
<br/>
<p>chris</p>
<br/>
<br/>
<br/>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>On 15/03/2010, at 6:41 AM, &lt;Marcolino.Pires@ac-paris.fr&gt; wrote:</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Hi</p>
<p>I have front several times this problem, the solution is to add  somthing like this in the AccessGrid python file causing the problem</p>
<p>import locale<br/>
...<br/>
locale.setlocale(locale.LC_ALL, 'C')<br/>
...</p>
<p>I can't tell you the exact file because I do not access an  AccessGrid client right now</p>
<p>Best regards</p>
<p>--</p>
<p>Marcolino PIRES<br/>
T&eacute;l&eacute;phone : 01 44 62 45 73</p>
<p>Rectorat de l'acad&eacute;mie de Paris<br/>
CAPTI - Bureau 382<br/>
94, avenue Gambetta<br/>
75984 PARIS CEDEX 20</p>
<p>----- Message d'origine -----<br/>
De: Jesus Cea Oliva &lt;jesus.cea@uca.es&gt;<br/>
Date: Dimanche, Mars 14, 2010 5:31 pm<br/>
Objet: [AG-TECH] Manage Certificates from VenueClient problems on  Ubuntu Karmic (Time data doesn't match format), and Control Access<br/>
&Agrave;: ag-tech@mcs.anl.gov</p>
<blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Hi list.</p>
<p>I've a problem on Venue Client, on Ubuntu machines, when I click on<br/>
"Tools-&gt;Manage Certificates ...". No appears any screen, so, on  Debug<br/>
Mode, I see this error:</p>
<p>"ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match<br/>
format '%b %d %H:%M:%S %Y %Z'"</p>
<p>This is the traceback:</p>
<br/>
<br/>
<p>/usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:5:<br/>
DeprecationWarning: the md5 module is deprecated; use hashlib  instead<br/>
import itertools, md5<br/>
/usr/lib/pymodules/python2.6/ZSI/resolvers.py:6: DeprecationWarning:<br/>
the multifile module has been deprecated since Python 2.5<br/>
import multifile, mimetools, urllib<br/>
Traceback (most recent call last):<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/CertificateManagerWXGUI.py",<br/>
line 176, in &lt;lambda&gt;<br/>
lambda event, win=win, self=self: self.OnShowNew(event, win))<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/CertificateManagerWXGUI.py",<br/>
line 237, in OnShowNew<br/>
self.certificateManager, self)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/CertificateManagerDialog.py",<br/>
line 25, in __init__<br/>
self.identBrowser = IdentityBrowser(self.notebook, -1,  self.certMgr)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/IdentityBrowser.py",<br/>
line 57, in __init__<br/>
CertificateBrowserBase.__init__(self, parent, id, certMgr)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/CertificateBrowserBase.py",<br/>
line 27, in __init__<br/>
self.Load()<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/CertificateBrowserBase.py",<br/>
line 86, in Load<br/>
data, columnStrings = self._FormatCert(cert)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ wxgui/IdentityBrowser.py",<br/>
line 286, in _FormatCert<br/>
valid = self.certMgr.CheckValidity(cert)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ CertificateManager.py",<br/>
line 375, in CheckValidity<br/>
if self.VerifyCertificatePath(cert):<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ CertificateManager.py",<br/>
line 405, in VerifyCertificatePath<br/>
issuers = filter(lambda x: not x.IsExpired(), issuers)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ CertificateManager.py",<br/>
line 405, in &lt;lambda&gt;<br/>
issuers = filter(lambda x: not x.IsExpired(), issuers)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ CertificateRepository.py",<br/>
line 1340, in IsExpired<br/>
return self.cert.IsExpired()<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ CertificateRepository.py",<br/>
line 1526, in IsExpired<br/>
return IsExpired(self.cert)<br/>
File<br/>
"/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ Utilities.py",<br/>
line 52, in IsExpired<br/>
before_tuple = time.strptime(str(before_time),format)<br/>
File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time<br/>
return _strptime(data_string, format)[0]<br/>
File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime<br/>
(data_string, format))<br/>
ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match  format<br/>
'%b %d %H:%M:%S %Y %Z'</p>
<br/>
<p>On Windows I haven't this problem, and, on both systems, I can  execute<br/>
CertificateManager3.py without problems, only I have this error from<br/>
VenueClient option. What can I do to solve?</p>
<p>Other question, exists some document about control access? I would<br/>
like to create venues and restrict access. I know that it can do  using<br/>
Venue Manager, the Security tab in each Venue. But, I don't know how<br/>
add persons, I see a "Distinguish name", but, how I can know the  DN of<br/>
a Participant? Is necesary that the participant enter on a venue for<br/>
restrict/permit the access?, or exists some solution to<br/>
restrict/permit a Participant without enter on a Venue?.</p>
<br/>
<p>Thank you for your time. I apologize for the inconvenience.<br/>
Greetings!</p>
</blockquote></blockquote><p>Christoph Willing                       +61 7 3365 8316<br/>
QCIF Access Grid Manager<br/>
University of Queensland</p>
</blockquote><p>Christoph Willing                       +61 7 3365 8316<br/>
QCIF Access Grid Manager<br/>
University of Queensland</p>
</blockquote><p>&nbsp;</p>
</body>
</html>