From: <ex...@tw...> - 2009-08-19 17:22:30
|
On 04:03 pm, da...@cr... wrote: >On Tue Aug 18 17:57:53 2009, Matthias G wrote: >>Can someone please tell, why for gods sake i receive this error? >> >>------------------------- >>Traceback (most recent call last): >> File "test.py", line 2, in <module> >> crypto.load_certificate(crypto.FILETYPE_PEM, 'client.pem') >>OpenSSL.crypto.Error: [('PEM routines', 'PEM_read_bio', 'no start >>line')] >>------------------------- > >Because the string 'client.pem' does not have a PEM start line... > >crypto.load_certificate(crypto.FILETYPE_PEM, >file('client.pem').read()) > >will do what you want. Groan. Good catch, Dave. :) Jean-Paul |