Task #2722
Updated by Junxiao Shi over 9 years ago
[ndn::KeyChain](https://github.com/named-data/ndn-cxx/blob/34a37630a14c67309467074b448057dbf62cda65/src/security/key-chain.cpp#L194) and [ndn::pib::Pib](https://github.com/named-data/ndn-cxx/blob/52728dbb3d3608b8b0a1faf64cefe40eb84a68f6/pib/pib.cpp#L88) have different code to create TPM object from a tpmLocator.
The design in ndn::KeyChain should be adopted.
This functionality should be abstracted into a common procedure, and called from both places.