Bug #4905
closedDefault KeyChain() on Ubuntu doesn't load a TPM key
0%
Description
(Reported by Ashlesh Gawande.)
In jNDN on Ubuntu, the default KeyChain() constructor is supposed to use the file-based TPM in ~/.ndn . But it does not use this to load keys from this directory. The problem is that the constructor TpmBackEndFile(String locationPath)
does not check if locationPath is empty, as it is done in the other libraries.
https://github.com/named-data/jndn/blob/e656e455517253a97b0173e4c2882d73596f31eb/src/net/named_data/jndn/security/tpm/TpmBackEndFile.java#L77
(This was due to testing on Android which doesn't have a home directory.) The solution is to check if locationPath is empty and if so they behave like the constructor TpmBackEndFile()
.
Updated by Anonymous over 5 years ago
- Status changed from New to Feedback
Hi Ashlesh. The bug fix is pushed to master. I tested it on my Ubuntu 18.04. Can you please test it. (Do you need me to push a new package for a Maven dependency, or can you test by pulling from GitHub?)
Updated by Ashlesh Gawande over 5 years ago
I pulled from the issue/4905-TpmBackEndFile-empty-location branch (master does not have it yet) and it works now.
Updated by Anonymous over 5 years ago
- Status changed from Feedback to Closed
Yes, that's the right branch. (I merged to master locally but forgot to push.) Thanks for testing so quickly. Closing.