{"action":"opened","issue":{"url":"https://api.github.com/repos/martinpaljak/M2Crypto/issues/86","labels_url":"https://api.github.com/repos/martinpaljak/M2Crypto/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/martinpaljak/M2Crypto/issues/86/comments","events_url":"https://api.github.com/repos/martinpaljak/M2Crypto/issues/86/events","html_url":"https://github.com/martinpaljak/M2Crypto/issues/86","id":117418209,"number":86,"title":"-----BEGIN TRUSTED CERTIFICATE------ doesn't work ","user":{"login":"SunTzuTech","id":15894883,"avatar_url":"https://avatars.githubusercontent.com/u/15894883?v=3","gravatar_id":"","url":"https://api.github.com/users/SunTzuTech","html_url":"https://github.com/SunTzuTech","followers_url":"https://api.github.com/users/SunTzuTech/followers","following_url":"https://api.github.com/users/SunTzuTech/following{/other_user}","gists_url":"https://api.github.com/users/SunTzuTech/gists{/gist_id}","starred_url":"https://api.github.com/users/SunTzuTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunTzuTech/subscriptions","organizations_url":"https://api.github.com/users/SunTzuTech/orgs","repos_url":"https://api.github.com/users/SunTzuTech/repos","events_url":"https://api.github.com/users/SunTzuTech/events{/privacy}","received_events_url":"https://api.github.com/users/SunTzuTech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T18:27:33Z","updated_at":"2015-11-17T18:27:33Z","closed_at":null,"body":"working with M2Crypto-0.22.6.rc3, I've noticed a strange behavior I didn't expect.\r\n\r\nMy original self signed certificate has the header:\r\n\r\n-----BEGIN TRUSTED CERTIFICATE-----\r\n\r\nwhen I run my script, I get the following output.\r\n\r\nWhen I swap in a the same cert, having removed \" TRUSTED\"\r\n\r\nthe script works as expected.   Is the parser that fragile?\r\n\r\nTraceback (most recent call last):\r\n  File \"./emailsign_filter.py\", line 240, in <module>\r\n    x509 = X509.load_cert(to_cert)\r\n  File \"/usr/lib64/python2.6/site-packages/M2Crypto-0.22.6.rc3-py2.6-linux-x86_64.egg/M2Crypto/X509.py\", line 611, in load_cert\r\n    return load_cert_bio(bio)\r\n  File \"/usr/lib64/python2.6/site-packages/M2Crypto-0.22.6.rc3-py2.6-linux-x86_64.egg/M2Crypto/X509.py\", line 639, in load_cert_bio\r\n    raise X509Error(Err.get_error())\r\nX509Error: 140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:2007507E:BIO routines:MEM_WRITE:write to read only BIO:bss_mem.c:183:\r\n140267904026368:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:\r\n"}}