Skip to content

Commit 3689618

Browse files
mrjerryjohnspull[bot]
authored andcommitted
Added the ability to use production PAAs with the CHIP REPL (#28909)
1 parent bb18711 commit 3689618

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controller/python/chip/ChipReplStartup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def mattersetdebug(enableDebugMode: bool = True):
8787
default="/tmp/repl-storage.json")
8888
parser.add_argument(
8989
"-d", "--debug", help="Set default logging level to debug.", action="store_true")
90+
parser.add_argument(
91+
"-t", "--trust-store", help="Path to the PAA trust store.", action="store", default="./credentials/development/paa-root-certs")
9092
args = parser.parse_args()
9193

9294
chip.native.Init()
@@ -105,7 +107,7 @@ def mattersetdebug(enableDebugMode: bool = True):
105107

106108
caList = certificateAuthorityManager.activeCaList
107109

108-
devCtrl = caList[0].adminList[0].NewController()
110+
devCtrl = caList[0].adminList[0].NewController(paaTrustStorePath=args.trustStore)
109111
builtins.devCtrl = devCtrl
110112

111113
atexit.register(StackShutdown)

0 commit comments

Comments
 (0)