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 21, 2024
1 parent 82fd782 commit 1413268
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 1413268

Please sign in to comment.