{"action":"created","issue":{"url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1","labels_url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1/comments","events_url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1/events","html_url":"https://github.com/NSAKEY/happy-dance/issues/1","id":99251798,"number":1,"title":"Automatically determine the keysize of rsa_id  file","user":{"login":"akhepcat","id":6025237,"avatar_url":"https://avatars.githubusercontent.com/u/6025237?v=3","gravatar_id":"","url":"https://api.github.com/users/akhepcat","html_url":"https://github.com/akhepcat","followers_url":"https://api.github.com/users/akhepcat/followers","following_url":"https://api.github.com/users/akhepcat/following{/other_user}","gists_url":"https://api.github.com/users/akhepcat/gists{/gist_id}","starred_url":"https://api.github.com/users/akhepcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhepcat/subscriptions","organizations_url":"https://api.github.com/users/akhepcat/orgs","repos_url":"https://api.github.com/users/akhepcat/repos","events_url":"https://api.github.com/users/akhepcat/events{/privacy}","received_events_url":"https://api.github.com/users/akhepcat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-08-05T17:04:43Z","updated_at":"2015-08-06T22:08:50Z","closed_at":"2015-08-06T22:08:50Z","body":"it's pretty simple:\r\n\r\n$  openssl rsa -in ~/.ssh/id_rsa -noout -text | grep Private\r\nPrivate-Key: (1024 bit)\r\n\r\nor, alternatively\r\n\r\n$  BITS=$( openssl rsa -in ~/.ssh/id_rsa -noout -text | grep Private | sed 's/.\\*(\\([0-9]\\*\\).\\*/\\1/g' )\r\n$ echo $BITS\r\n1024\r\n\r\nobviously this works with dsa keys, which is of course unnecessary, and base ec, but not ed25519 keys on most versions of openssl."},"comment":{"url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/comments/128523371","html_url":"https://github.com/NSAKEY/happy-dance/issues/1#issuecomment-128523371","issue_url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1","id":128523371,"user":{"login":"NSAKEY","id":9867434,"avatar_url":"https://avatars.githubusercontent.com/u/9867434?v=3","gravatar_id":"","url":"https://api.github.com/users/NSAKEY","html_url":"https://github.com/NSAKEY","followers_url":"https://api.github.com/users/NSAKEY/followers","following_url":"https://api.github.com/users/NSAKEY/following{/other_user}","gists_url":"https://api.github.com/users/NSAKEY/gists{/gist_id}","starred_url":"https://api.github.com/users/NSAKEY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSAKEY/subscriptions","organizations_url":"https://api.github.com/users/NSAKEY/orgs","repos_url":"https://api.github.com/users/NSAKEY/repos","events_url":"https://api.github.com/users/NSAKEY/events{/privacy}","received_events_url":"https://api.github.com/users/NSAKEY/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:08:50Z","updated_at":"2015-08-06T22:08:50Z","body":"I'm going to link to your last reply in the comments for happy-dance.sh and close this ticket out."}}