{"action":"created","issue":{"url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/301","labels_url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/301/comments","events_url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/301/events","html_url":"https://github.com/whiteout-io/mail-html5/issues/301","id":58951261,"number":301,"title":"Importing GPG Subkeys Fails","user":{"login":"asayler","id":308157,"avatar_url":"https://avatars.githubusercontent.com/u/308157?v=3","gravatar_id":"","url":"https://api.github.com/users/asayler","html_url":"https://github.com/asayler","followers_url":"https://api.github.com/users/asayler/followers","following_url":"https://api.github.com/users/asayler/following{/other_user}","gists_url":"https://api.github.com/users/asayler/gists{/gist_id}","starred_url":"https://api.github.com/users/asayler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asayler/subscriptions","organizations_url":"https://api.github.com/users/asayler/orgs","repos_url":"https://api.github.com/users/asayler/repos","events_url":"https://api.github.com/users/asayler/events{/privacy}","received_events_url":"https://api.github.com/users/asayler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T18:52:50Z","updated_at":"2015-05-12T10:14:03Z","closed_at":null,"body":"I'm trying to import my existing GPG subkeys into Whiteout (i.e. offline master setup). My GPG keyring is currently setup with two 4096-bit RSA subkeys, one for encryption and one for authentication. The master private key is stored offline and is not present in the keyring:\r\n\r\n```\r\n$ gpg -K\r\n~/.gnupg/secring.gpg\r\n--------------------------------\r\nsec#  4096R/<REDACTED> 2013-10-08\r\nuid                  Andrew Sayler <andrew.sayler@colorado.edu>\r\nuid                  Andy Sayler <andy@wmfo.org>\r\nuid                  Andy Sayler (andysayler.com)\r\nuid                  Andrew Jackson Sayler (Born September 6th, 1988)\r\nuid                  Andy Sayler (asayler) <andy.sayler@gmail.com>\r\nuid                  Andrew Sayler (Graduated May 2011, BSEE) <andrew.sayler@alumni.tufts.edu>\r\nuid                  Andy Sayler <neueWelt@gmail.com>\r\nuid                  Andy Sayler <andy.sayler@colorado.edu>\r\nuid                  Andrew Jackson Sayler (MSCS, December 2013) <andy.sayler@colorado.edu>\r\nuid                  Andrew Jackson Sayler (BSEE, May 2011) <andrew.sayler@alumni.tufts.edu>\r\nssb   4096R/<REDACTED> 2013-10-08\r\nssb   4096R/<REDACTED> 2013-10-08\r\n```\r\n\r\nI'm exporting both the public and private subkeys from gpg for import into Whiteout:\r\n\r\n```\r\n$ gpg --armor --export asayler > asayler-150225-pub-armor.gpg\r\n$ gpg --armor --export-secret-subkeys asayler > asayler-150225-sub-armor.gpg\r\n$ cat asayler-150225-pub-armor.gpg asayler-150225-sub-armor.gpg > asayler-150225-combined-armor.gpg\r\n```\r\n\r\nWhen I try to import the resulting combined key file into Whiteout, however, I get the following error message:\r\n\r\n```\r\nError reading key parameters!\r\n```\r\n\r\nThe same thing happens when I try to import just the private key file.\r\n\r\nDoes Whiteout know how to handle subkeys, or am I doing something else wrong?\r\n\r\nI'm using GnuPG 2.0.24 and Whiteout 0.24.0 (Chrome App) with Chrome 40.0.2214.115 (64-bit).\r\n"},"comment":{"url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/comments/101222389","html_url":"https://github.com/whiteout-io/mail-html5/issues/301#issuecomment-101222389","issue_url":"https://api.github.com/repos/whiteout-io/mail-html5/issues/301","id":101222389,"user":{"login":"felixhammerl","id":1818340,"avatar_url":"https://avatars.githubusercontent.com/u/1818340?v=3","gravatar_id":"","url":"https://api.github.com/users/felixhammerl","html_url":"https://github.com/felixhammerl","followers_url":"https://api.github.com/users/felixhammerl/followers","following_url":"https://api.github.com/users/felixhammerl/following{/other_user}","gists_url":"https://api.github.com/users/felixhammerl/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhammerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhammerl/subscriptions","organizations_url":"https://api.github.com/users/felixhammerl/orgs","repos_url":"https://api.github.com/users/felixhammerl/repos","events_url":"https://api.github.com/users/felixhammerl/events{/privacy}","received_events_url":"https://api.github.com/users/felixhammerl/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T10:14:03Z","updated_at":"2015-05-12T10:14:03Z","body":"there is always the workaround of generating a key with whiteout mail for your address :)\r\n\r\nbut i see where this is coming from. @tanx is this an issue for openpgp.js?"}}