Public Key
URL: | http://server:port/arcgis/admin/publicKey |
HTTP Method: | GET |
Parent Resource: |
Site |
Description
This resource returns the public key of the server that can be used by a client application (or script) to encrypt data sent to the
server using the RSA algorithm for public-key encryption. In addition to encrypting the sensitive parameters,
the client is also required to send to the server an additional flag encrypted with value set to true.
Note:
- You should not encrypt the values for the response format (f) or the token parameter.
- As the public key for the server can be changed at later time, the client must fetch it on each request before encrypting the data
sent to the server.
Parameters
Parameter |
Description |
f |
The response format. The default response format is html.
Values: html | json
|
Response Format
{
"publicKey": "<public key>",
"modulus": "<modulus>"
}
Example
{
"publicKey": "10001",
"modulus": "a032f331acfa9d17ab5e30f75b2a311010cc01d4e8482d6a91abd7409a941099"
}