From 4f88d5fd7aed7bc1ac5d934a4f60d7235322e839 Mon Sep 17 00:00:00 2001 From: Jerry Johns Date: Mon, 28 Aug 2023 09:53:37 -0700 Subject: [PATCH] Added the ability to use production PAAs with the CHIP REPL (#28909) --- src/controller/python/chip/ChipReplStartup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/python/chip/ChipReplStartup.py b/src/controller/python/chip/ChipReplStartup.py index 850d85eb90ffed..7bc4988ddd1284 100644 --- a/src/controller/python/chip/ChipReplStartup.py +++ b/src/controller/python/chip/ChipReplStartup.py @@ -87,6 +87,8 @@ def mattersetdebug(enableDebugMode: bool = True): default="/tmp/repl-storage.json") parser.add_argument( "-d", "--debug", help="Set default logging level to debug.", action="store_true") +parser.add_argument( + "-t", "--trust-store", help="Path to the PAA trust store.", action="store", default="./credentials/development/paa-root-certs") args = parser.parse_args() chip.native.Init() @@ -105,7 +107,7 @@ def mattersetdebug(enableDebugMode: bool = True): caList = certificateAuthorityManager.activeCaList -devCtrl = caList[0].adminList[0].NewController() +devCtrl = caList[0].adminList[0].NewController(paaTrustStorePath=args.trustStore) builtins.devCtrl = devCtrl atexit.register(StackShutdown)