{"action":"created","issue":{"url":"https://api.github.com/repos/igrr/axtls-8266/issues/10","repository_url":"https://api.github.com/repos/igrr/axtls-8266","labels_url":"https://api.github.com/repos/igrr/axtls-8266/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/igrr/axtls-8266/issues/10/comments","events_url":"https://api.github.com/repos/igrr/axtls-8266/issues/10/events","html_url":"https://github.com/igrr/axtls-8266/issues/10","id":138115461,"number":10,"title":"Not a valid ASN.1 file","user":{"login":"slaff","id":247452,"avatar_url":"https://avatars.githubusercontent.com/u/247452?v=3","gravatar_id":"","url":"https://api.github.com/users/slaff","html_url":"https://github.com/slaff","followers_url":"https://api.github.com/users/slaff/followers","following_url":"https://api.github.com/users/slaff/following{/other_user}","gists_url":"https://api.github.com/users/slaff/gists{/gist_id}","starred_url":"https://api.github.com/users/slaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaff/subscriptions","organizations_url":"https://api.github.com/users/slaff/orgs","repos_url":"https://api.github.com/users/slaff/repos","events_url":"https://api.github.com/users/slaff/events{/privacy}","received_events_url":"https://api.github.com/users/slaff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"igrr","id":4349050,"avatar_url":"https://avatars.githubusercontent.com/u/4349050?v=3","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-03T08:50:46Z","updated_at":"2016-04-08T15:58:02Z","closed_at":"2016-04-08T15:58:02Z","body":"When integrating the code in  [another ESP8266 framework](https://github.com/SmingHub/Sming/pull/596) I am getting the following error before handshake.\r\n\r\n```\r\nError: This is not a valid ASN.1 file\r\nError: Invalid X509 ASN.1 file (X509 not ok)\r\n```\r\n\r\nWhat can be the reason for this? With the Linux axtls code (without additions from this repo) it seems to work. Any suggestion?"},"comment":{"url":"https://api.github.com/repos/igrr/axtls-8266/issues/comments/207492539","html_url":"https://github.com/igrr/axtls-8266/issues/10#issuecomment-207492539","issue_url":"https://api.github.com/repos/igrr/axtls-8266/issues/10","id":207492539,"user":{"login":"slaff","id":247452,"avatar_url":"https://avatars.githubusercontent.com/u/247452?v=3","gravatar_id":"","url":"https://api.github.com/users/slaff","html_url":"https://github.com/slaff","followers_url":"https://api.github.com/users/slaff/followers","following_url":"https://api.github.com/users/slaff/following{/other_user}","gists_url":"https://api.github.com/users/slaff/gists{/gist_id}","starred_url":"https://api.github.com/users/slaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaff/subscriptions","organizations_url":"https://api.github.com/users/slaff/orgs","repos_url":"https://api.github.com/users/slaff/repos","events_url":"https://api.github.com/users/slaff/events{/privacy}","received_events_url":"https://api.github.com/users/slaff/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T15:58:02Z","updated_at":"2016-04-08T15:58:02Z","body":"@igrr @noelgeorgi  It turned out that the key and certificate that I was passing to `ssl_obj_memory_load` were in PEM format, whereas axTLS expects them at that stage to be in DER format. Passing the data in DER format fixed the issue. "}}