# Inject Test Keys Remotely

### Purpose

This procedure is intended for testing terminals only and outlines the steps for remotely injecting a test key.

### Steps for Key Injection

1. Provide Terminal Serial Number:
   * Send the serial number of the terminal that requires key injection to our team.
2. Send Key File or Key Information:
   * Option 1: Key File Submission
     * Send us the key file to be configured on our demo server.
   * Option 2: Key Information Submission
     * Alternatively, provide key information including the key index and key value. For DUKPT keys, also include the Key Serial Number (KSN) and the Initial Pin Encryption Key (IPEK).
3. Download and Install the Initialize Certificate APK:

   * Download the [initialize certificate APK](https://ftp.wizarpos.com/advanceSDK/InitCertForRemotekeyInject_20250829.apk) to the terminal.
   * Run it to inject certificates.

   <figure><img src="https://3254882245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTv6FkzHXX8QyxZpeenq6%2Fuploads%2F1DtSi4vZTmLmP77rQ8vM%2Fimage.png?alt=media&#x26;token=a5619226-9ca1-45be-85e5-5a5491f0fde6" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3254882245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTv6FkzHXX8QyxZpeenq6%2Fuploads%2FTvykSWbABpm1dh7BzyPB%2Fimage.png?alt=media&#x26;token=3cbe52d8-194a-4740-8dca-45aeeca22947" alt=""><figcaption></figcaption></figure>

   * Important Note: This step will change the terminal's owner to a test owner.&#x20;
4. Key Loader Client Agent Installation:

   * Obtain and install the [key loader client agent](https://ftp.wizarpos.com/advanceSDK/injectkeydemo-release-202406201106_release_by_pengli.apk) on your terminal.
   * Run the agent to inject the keys into the terminal. Select the corresponding key button. For example: If injecting the Master Key, select the REQUEST INJECT MASTER KEY button.

   <figure><img src="https://3254882245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTv6FkzHXX8QyxZpeenq6%2Fuploads%2FsxsXf6qVYzMjGKTWi8UB%2Fimage.png?alt=media&#x26;token=914dd49d-d1df-48bc-acfe-e8bfc2897998" alt=""><figcaption></figcaption></figure>

Note:

* Pay meticulous attention to all steps, especially when handling key files and changing terminal owner, to ensure both security and functionality.
* Change terminal owner and clear certificates as part of the post-testing procedures – this is critical for maintaining the terminal's security posture.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/key-injection/inject-test-keys-remotely.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
