On Sat, 23 Aug 2008 10:22:10 +0100, Tim Jackson wrote:
After I did this, plague-client complains when I try to build for EPEL:
Traceback (most recent call last): File "/usr/bin/plague-client", line 420, in <module> cli = PlagueClient(os.path.expanduser(cfg_file)) File "/usr/bin/plague-client", line 81, in __init__ self._email = self._get_user_email() File "/usr/bin/plague-client", line 138, in _get_user_email cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, buf) OpenSSL.crypto.Error: [('PEM routines', 'PEM_read_bio', 'bad end line')] make: *** [plague] Error 1
I'm not really sure what this means (maybe the formatting of one of the certs is incorrect?) Did I do something wrong?
plague-client is broken. My guess in the other reply was good. Apply this:
--- plague-client~ 2008-01-31 15:08:22.000000000 +0100 +++ plague-client 2008-08-23 12:24:53.000000000 +0200 @@ -133,7 +133,7 @@ print "%s does not exist or is not readable." % certfile sys.exit(1) f = open(certfile, "r") - buf = f.read(8192) + buf = f.read() f.close() cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, buf) cert_email = cert.get_subject().emailAddress [