def __load(self, file_name):
# type: (str) -> RSAPrivateKey
file_path = os.path.join(self.key_store_path, file_name)
with(open(file_path, 'r')) as f:
return serialization.load_pem_private_key(
f.read().encode('utf-8'),
password=self.__key_store_passphrase,
backend=default_backend())
评论列表
文章目录