{"action":"closed","issue":{"url":"https://api.github.com/repos/theupdateframework/tuf/issues/709","repository_url":"https://api.github.com/repos/theupdateframework/tuf","labels_url":"https://api.github.com/repos/theupdateframework/tuf/issues/709/labels{/name}","comments_url":"https://api.github.com/repos/theupdateframework/tuf/issues/709/comments","events_url":"https://api.github.com/repos/theupdateframework/tuf/issues/709/events","html_url":"https://github.com/theupdateframework/tuf/issues/709","id":317292072,"number":709,"title":"Inconsistent newline characters in PEM strings","user":{"login":"vladimir-v-diaz","id":3520883,"avatar_url":"https://avatars2.githubusercontent.com/u/3520883?v=4","gravatar_id":"","url":"https://api.github.com/users/vladimir-v-diaz","html_url":"https://github.com/vladimir-v-diaz","followers_url":"https://api.github.com/users/vladimir-v-diaz/followers","following_url":"https://api.github.com/users/vladimir-v-diaz/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-v-diaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-v-diaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-v-diaz/subscriptions","organizations_url":"https://api.github.com/users/vladimir-v-diaz/orgs","repos_url":"https://api.github.com/users/vladimir-v-diaz/repos","events_url":"https://api.github.com/users/vladimir-v-diaz/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-v-diaz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T15:58:59Z","updated_at":"2018-04-30T17:57:21Z","closed_at":"2018-04-30T17:57:21Z","author_association":"CONTRIBUTOR","body":"**Description of issue or feature request**:\r\n\r\nNewline characters in PEM strings/files do not match across our supported environments.  On Linux/MacOS, `\\n` (line feed) is used, while on Windows it is `\\r\\n` (carriage return + line feed).  This inconsistency is resulting in different KEYIDS/hashes for essentially the same key/PEM.\r\n\r\n**Current behavior**:\r\n\r\nAn example of a public key in Windows where a line feed is used:\r\n```Python\r\nu'-----BEGIN PUBLIC KEY-----\\nMIIBojANBgkqhkiG9w0BAQEFA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jHXDDz2mkLq+9I2iKtEqaEePcWRu3H6RLahpM/TxFzw684Y\\r\\nR47weXdDecPNxWyiWiyMGStRFP4Cg9trcwAGnEm1w8R2ggmWphznCd5dXGhPNjfA\\r\\na82yNFY8ubnOUVJOf0nXGg3Edw9iY3xyjJb2+nrsk5f3AgMBAAE=\\r\\n'\r\n```\r\n\r\n**Expected behavior**:\r\n\r\nThe PEM strings should ideally match even if they use different new line characters."}}
{"actor":{"display_login":"vladimir-v-diaz"}}