{"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":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-05T17:04:43Z","updated_at":"2015-08-05T19:57:49Z","closed_at":null,"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/128130647","html_url":"https://github.com/NSAKEY/happy-dance/issues/1#issuecomment-128130647","issue_url":"https://api.github.com/repos/NSAKEY/happy-dance/issues/1","id":128130647,"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-05T19:57:49Z","updated_at":"2015-08-05T19:57:49Z","body":"That's really odd. KEYSIZE is only used if you already have an RSA key. That check is ignored completely if you've already got an RSA key. What Linux distro are you using? I don't mind pushing out a fix, especially since your way doesn't break anything. However, I would like to be able to reproduce this for my own personal curiosity."}}