question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recorder: SslServerContext assumes the keyStore and KeyManager have the same password

See original GitHub issue

In SslServerContext the keyStrore is initialized like so:

lazy val keyStore = {
      val ks = KeyStore.getInstance(keyStoreType.toString)
      withCloseable(keyStoreInitStream) { ks.load(_, password) }
      ks
    }

and the KeyManager is initialized like so

 // Set up key manager factory to use our key store
      val kmf = KeyManagerFactory.getInstance(Algorithm)
      kmf.init(keyStore, password)

The code assumes they both use the same password. In reality, if there are two different passwords needed the you will get the an exception:

java.security.UnrecoverableKeyException: Cannot recover key

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
slandellecommented, Nov 21, 2016

@ggsjyoon Please ping me if you can come up with a more complete version 😃

0reactions
slandellecommented, Jun 14, 2018

This feature request has been idle for a very long time. Closing for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Security Toolkit for Java™ Programmer's Guide - Test
This section of the Programmer's Guide introduces the Entrust Authority™. Security Toolkit for Java™ (formerly Entrust/Toolkit™ for Java™) and explains.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found