{"action":"created","issue":{"url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/11","labels_url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/11/comments","events_url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/11/events","html_url":"https://github.com/ganskef/LittleProxy-mitm/issues/11","id":109758053,"number":11,"title":"CertificateSniffingMitmManager throws exceptions if upstreamCert.getSubjectAlternativeNames() is null","user":{"login":"rhehl","id":7577984,"avatar_url":"https://avatars.githubusercontent.com/u/7577984?v=3","gravatar_id":"","url":"https://api.github.com/users/rhehl","html_url":"https://github.com/rhehl","followers_url":"https://api.github.com/users/rhehl/followers","following_url":"https://api.github.com/users/rhehl/following{/other_user}","gists_url":"https://api.github.com/users/rhehl/gists{/gist_id}","starred_url":"https://api.github.com/users/rhehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhehl/subscriptions","organizations_url":"https://api.github.com/users/rhehl/orgs","repos_url":"https://api.github.com/users/rhehl/repos","events_url":"https://api.github.com/users/rhehl/events{/privacy}","received_events_url":"https://api.github.com/users/rhehl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T09:17:07Z","updated_at":"2015-10-16T16:20:37Z","closed_at":"2015-10-16T16:20:37Z","body":"Fix:\r\n\r\nString commonName = getCommonName(upstreamCert);\r\n\r\n\t\t\tSubjectAlternativeNameHolder san = new SubjectAlternativeNameHolder();\r\n\r\n\t\t\tCollection<List<?>> an = upstreamCert.getSubjectAlternativeNames();\r\n\r\n\t\t\tif (an == null) {\r\n\t\t\t\tsan = new SubjectAlternativeNameHolder();\r\n\t\t\t} else {\r\n\t\t\t\tsan.addAll(an);\r\n\t\t\t}\r\n\r\n\t\t\tLOG.debug(\"Subject Alternative Names: {}\", san);\r\n\t\t\treturn sslEngineSource.createCertForHost(commonName, san);"},"comment":{"url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/comments/148759108","html_url":"https://github.com/ganskef/LittleProxy-mitm/issues/11#issuecomment-148759108","issue_url":"https://api.github.com/repos/ganskef/LittleProxy-mitm/issues/11","id":148759108,"user":{"login":"ganskef","id":10618502,"avatar_url":"https://avatars.githubusercontent.com/u/10618502?v=3","gravatar_id":"","url":"https://api.github.com/users/ganskef","html_url":"https://github.com/ganskef","followers_url":"https://api.github.com/users/ganskef/followers","following_url":"https://api.github.com/users/ganskef/following{/other_user}","gists_url":"https://api.github.com/users/ganskef/gists{/gist_id}","starred_url":"https://api.github.com/users/ganskef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganskef/subscriptions","organizations_url":"https://api.github.com/users/ganskef/orgs","repos_url":"https://api.github.com/users/ganskef/repos","events_url":"https://api.github.com/users/ganskef/events{/privacy}","received_events_url":"https://api.github.com/users/ganskef/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T16:20:37Z","updated_at":"2015-10-16T16:20:37Z","body":"It's integrated now, so I close this issue."}}