Title: Two questions about ssh-jce · Issue #8 · adamcin/httpsig-java · GitHub
Open Graph Title: Two questions about ssh-jce · Issue #8 · adamcin/httpsig-java
X Title: Two questions about ssh-jce · Issue #8 · adamcin/httpsig-java
Description: KeyFormat.SSH_RSA has Algorithm.SSH_RSA as the first candidate for algorithm, but it is not supported by node-http-signature: httpsig-java/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/KeyFormat.java Line 53 in 2b1fc56 Arrays.asList(...
Open Graph Description: KeyFormat.SSH_RSA has Algorithm.SSH_RSA as the first candidate for algorithm, but it is not supported by node-http-signature: httpsig-java/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/KeyForma...
X Description: KeyFormat.SSH_RSA has Algorithm.SSH_RSA as the first candidate for algorithm, but it is not supported by node-http-signature: httpsig-java/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/KeyForma...
Opengraph URL: https://github.com/adamcin/httpsig-java/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two questions about ssh-jce","articleBody":"1) \r\n`KeyFormat.SSH_RSA` has `Algorithm.SSH_RSA` as the first candidate for algorithm, but it is not supported by node-http-signature:\r\n\r\nhttps://github.com/adamcin/httpsig-java/blob/2b1fc5601bbc17ee4b953c0063423fffe2ccd0bb/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/KeyFormat.java#L53\r\n\r\nhttps://github.com/joyent/node-http-signature/blob/529441d9d04a8ecb296a2a152929332526344673/lib/utils.js#L13\r\n\r\nFor this to work without algorithms rotations, i do the following after a signer creation:\r\n\r\n```\r\nCollection\u003cAlgorithm\u003e algorithms = Collections.singletonList(Algorithm.RSA_SHA256);\r\nChallenge challenge = new Challenge(\"\u003cpreemptive\u003e\", Constants.DEFAULT_HEADERS, algorithms);\r\nsigner.rotateKeys(challenge);\r\n```\r\n\r\nIs this how it is supposed to be used? Can't there be more \"out of the box experience\" for this?\r\n\r\n\r\n2) \r\nWhy `SSHKey` here must have public key?\r\n\r\nhttps://github.com/adamcin/httpsig-java/blob/2b1fc5601bbc17ee4b953c0063423fffe2ccd0bb/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/SSHKey.java#L64\r\n\r\nIt seems that presence of methods like `canVerify` and checks in `verify` method itself should prevent invalid use. Just curious. Use case is that a key used only for signing, not verifying.","author":{"url":"https://github.com/vonagam","@type":"Person","name":"vonagam"},"datePublished":"2017-03-07T22:01:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8/httpsig-java/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6939915a-8028-70f4-c536-fd9eee01e57b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF2A:3B16A6:32BF7B3:464DDA2:6A4F2687 |
| html-safe-nonce | 77d5182b2917a402cdb332efe02d595218db399e82882080fd23be8f4c1c26a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjJBOjNCMTZBNjozMkJGN0IzOjQ2NEREQTI6NkE0RjI2ODciLCJ2aXNpdG9yX2lkIjoiNzM1OTg4ODc3ODA1NDI4MDgzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfa2a1c51c6dc322b8fa3c49ff0fbaace7cb2712de8c6d40ba12baeb9b65f197 |
| hovercard-subject-tag | issue:212572815 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adamcin/httpsig-java/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d592354600f10251334457f28c927f0732f0be0490c2437a89800d015b1de079/adamcin/httpsig-java/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d592354600f10251334457f28c927f0732f0be0490c2437a89800d015b1de079/adamcin/httpsig-java/issues/8 |
| og:image:alt | KeyFormat.SSH_RSA has Algorithm.SSH_RSA as the first candidate for algorithm, but it is not supported by node-http-signature: httpsig-java/ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/KeyForma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vonagam |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/adamcin/httpsig-java git https://github.com/adamcin/httpsig-java.git |
| octolytics-dimension-user_id | 524972 |
| octolytics-dimension-user_login | adamcin |
| octolytics-dimension-repository_id | 14969366 |
| octolytics-dimension-repository_nwo | adamcin/httpsig-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14969366 |
| octolytics-dimension-repository_network_root_nwo | adamcin/httpsig-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width