{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/21502","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/21502/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/21502/comments","events_url":"https://api.github.com/repos/golang/go/issues/21502/events","html_url":"https://github.com/golang/go/issues/21502","id":251039041,"number":21502,"title":"crypto/x509: ParseCertificate fails for ECDSA certificate, gives asn1 unmarshal error","user":{"login":"vickiniu","id":7269957,"avatar_url":"https://avatars0.githubusercontent.com/u/7269957?v=4","gravatar_id":"","url":"https://api.github.com/users/vickiniu","html_url":"https://github.com/vickiniu","followers_url":"https://api.github.com/users/vickiniu/followers","following_url":"https://api.github.com/users/vickiniu/following{/other_user}","gists_url":"https://api.github.com/users/vickiniu/gists{/gist_id}","starred_url":"https://api.github.com/users/vickiniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickiniu/subscriptions","organizations_url":"https://api.github.com/users/vickiniu/orgs","repos_url":"https://api.github.com/users/vickiniu/repos","events_url":"https://api.github.com/users/vickiniu/events{/privacy}","received_events_url":"https://api.github.com/users/vickiniu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/62","html_url":"https://github.com/golang/go/milestone/62","labels_url":"https://api.github.com/repos/golang/go/milestones/62/labels","id":2827591,"number":62,"title":"Go1.11","description":"","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":829,"closed_issues":218,"state":"open","created_at":"2017-10-10T13:39:17Z","updated_at":"2018-03-28T03:47:33Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"comments":5,"created_at":"2017-08-17T18:55:54Z","updated_at":"2018-03-28T03:47:33Z","closed_at":"2018-03-28T03:47:33Z","author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of Go are you using (`go version`)?\r\n`go version go1.8.3 darwin/amd64`\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/code/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/Cellar/go/1.8.3/libexec\"\r\nGOTOOLDIR=\"/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vd/th9v9qw93c3d2mb24ghf4q_r0000gn/T/go-build785283138=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nPKG_CONFIG=\"pkg-config\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\n```\r\n\r\n### What did you do?\r\n\r\nDecoding ECDSA certificate (fail)\r\nhttps://play.golang.org/p/wHYxSA6JrN\r\n\r\nNote: decoding this certificate using `openssl x509 -in devCA.crt -text -noout` produces correct output.\r\n\r\nDecoding RSA certificate (success)\r\nhttps://play.golang.org/p/fvcX76vbY5\r\n\r\n### What did you expect to see?\r\nReturn `ok=true` from `certPool.AppendCertsFromPEM` on decoding ECDSA certificate\r\n\r\n### What did you see instead?\r\n```\r\nasn1: structure error: tags don't match (6 vs {class:0 tag:16 length:247 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} ObjectIdentifier @3\r\n```\r\n\r\n"}}
{"actor":{"display_login":"gopherbot"}}