{"action":"created","issue":{"url":"https://api.github.com/repos/gatling/gatling/issues/2971","repository_url":"https://api.github.com/repos/gatling/gatling","labels_url":"https://api.github.com/repos/gatling/gatling/issues/2971/labels{/name}","comments_url":"https://api.github.com/repos/gatling/gatling/issues/2971/comments","events_url":"https://api.github.com/repos/gatling/gatling/issues/2971/events","html_url":"https://github.com/gatling/gatling/issues/2971","id":149134221,"number":2971,"title":"Recorder: SslServerContext assumes the keyStore and KeyManager have the same password","user":{"login":"ttzvika","id":1908223,"avatar_url":"https://avatars.githubusercontent.com/u/1908223?v=3","gravatar_id":"","url":"https://api.github.com/users/ttzvika","html_url":"https://github.com/ttzvika","followers_url":"https://api.github.com/users/ttzvika/followers","following_url":"https://api.github.com/users/ttzvika/following{/other_user}","gists_url":"https://api.github.com/users/ttzvika/gists{/gist_id}","starred_url":"https://api.github.com/users/ttzvika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttzvika/subscriptions","organizations_url":"https://api.github.com/users/ttzvika/orgs","repos_url":"https://api.github.com/users/ttzvika/repos","events_url":"https://api.github.com/users/ttzvika/events{/privacy}","received_events_url":"https://api.github.com/users/ttzvika/received_events","type":"User","site_admin":false},"labels":[{"id":382224248,"url":"https://api.github.com/repos/gatling/gatling/labels/Contributions%20Welcome!","name":"Contributions Welcome!","color":"fbca04","default":false},{"id":124889550,"url":"https://api.github.com/repos/gatling/gatling/labels/Low%20Hanging%20Fruit","name":"Low Hanging Fruit","color":"009800","default":false},{"id":170727,"url":"https://api.github.com/repos/gatling/gatling/labels/Module%20-%20Recorder","name":"Module - Recorder","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-18T12:17:13Z","updated_at":"2016-11-21T12:45:58Z","closed_at":null,"body":"In SslServerContext the keyStrore is initialized like so:\n\n``` scala\nlazy val keyStore = {\n      val ks = KeyStore.getInstance(keyStoreType.toString)\n      withCloseable(keyStoreInitStream) { ks.load(_, password) }\n      ks\n    }\n```\n\nand the KeyManager is initialized like so\n\n``` scala\n // Set up key manager factory to use our key store\n      val kmf = KeyManagerFactory.getInstance(Algorithm)\n      kmf.init(keyStore, password)\n```\n\nThe code assumes they both use the same password. In reality, if there are two different passwords needed the you will get the an exception:\n\n```\njava.security.UnrecoverableKeyException: Cannot recover key\n```\n"},"comment":{"url":"https://api.github.com/repos/gatling/gatling/issues/comments/261927506","html_url":"https://github.com/gatling/gatling/issues/2971#issuecomment-261927506","issue_url":"https://api.github.com/repos/gatling/gatling/issues/2971","id":261927506,"user":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T12:45:58Z","updated_at":"2016-11-21T12:45:58Z","body":"Good to know. As this usage is not very common, and there's an easy workaround, that's not really a priority for us. Contribs welcome."}}
{"actor":{"display_login":"slandelle"}}