Skip to content

Commit

Permalink
Added the ability to use production PAAs with the CHIP REPL (#28909)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjerryjohns authored and pull[bot] committed Feb 8, 2024
1 parent 84e2ce0 commit 4f88d5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/python/chip/ChipReplStartup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 4f88d5f

Please sign in to comment.