Skip to content

Commit

Permalink
openhab#47 Remove TODO from code and add issue openhab#55 instead
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Oeing <christian.oeing@slashgames.org>
  • Loading branch information
coeing committed Nov 18, 2020
1 parent 03ebbc2 commit 5ffbc9a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ public KeyStore getKeyStoreAndCreateIfNecessary() throws PairingFailedException
} else {
// load keystore as a first check
KeyStore keyStore = KeyStore.getInstance("JKS");
// TODO if SHC system password is changed the keystore can't be loaded and an IOException "... password
// was incorrect" is thrown
// Either use a different secret instead of the system password (e.g. openHAB UUID?)
// or recreate a new keystore with the different system password again (needs pairing)
keyStore.load(new FileInputStream(file), keystorePassword.toCharArray());
logger.debug("Using existing keystore {}", keystorePath);
return keyStore;
Expand Down

0 comments on commit 5ffbc9a

Please sign in to comment.