Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to use production PAAs with the CHIP REPL #28909

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading