janten / dpt-rp1-py

Python script to manage a Sony DPT-RP1 without the Digital Paper App
MIT License
537 stars 135 forks source link

Can you help to add "testmode" into the command list pls? #20

Closed p4s2wd closed 3 years ago

p4s2wd commented 6 years ago

The Sony DPT-RP1 provides the "testmode" via API, can you help to add it into your command list pls? with this command, we may enable the testmode for DPT-RP1 and may root it.

"/testmode/auth/nonce": "/testmode/auth": "/testmode/launch": "/testmode/recovery_mode":

Thank you! Steven

janten commented 6 years ago

As far as I know, no one has figured out how these commands actually work. Do you have any details about the process?

p4s2wd commented 6 years ago

After checked a while, I found testmode is running on port 8444, you can get the nonce via https://digitalpaper.local:8444/testmode/auth/nonce, I have no idea how to sign the nonce with which private key.

p4s2wd commented 6 years ago

"/testmode/auth": { "put": { "tags": [ "テストモード" ], "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "description": "To do authentication exclusively for test mode

# nonce_signed specifies Nonce (one-time token) digitally signed with SHA 256 signature algorithm using K_PRIV_DT (secret key of client dedicated to test mode) ", "parameters": [ { "name": "auth_info", "in": "body", "required": true, "schema": { "$ref": "#/definitions/specialAuthPutRequest" } } ], "responses": { "204": { "description": "認証に成功" }, "400": { "description": " [40000] JSONのパースに失敗した\n [40001] 必須パラメータが指定されていなかった", "schema": { "$ref": "#/definitions/errorResult" } }, "401": { "description": " [40100] 認証に失敗した", "schema": { "$ref": "#/definitions/errorResult" } }, "403": { "description": " [40300] テストモードとして規定された手順以外でアクセスした", "schema": { "$ref": "#/definitions/errorResult" } }