ArcGIS REST API

Register HTTPS Certificate

Description

The register HTTPS certificate operation (POST only, HTTPS only) allows administrator to register custom X.509 HTTPS certificates with their ArcGIS Online organizations. This will allow ArcGIS Online organization to trust the custom certificates used by a remote server when making HTTPS requests to it, i.e. store credentials required to access its resource and share with others.

A maximum of 5 certificates can be registered with an organization.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

name

Name for the certificate to be registered.

domain

Server domain that the certificate is used for.

certificate

Base64-encoded certificate text, enclosed between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

certificateId

Id of the registered certificate.

Example Usage

URL for Register HTTPS Certificate

https://www.arcgis.com/sharing/rest/portals/J423vH8fR9HV444l/certificates/register

JSON Response Syntax

{
	"success": true,
	"certificateId": "<certificateId>"
}

JSON Response Example

{
	"success": true,
	"certificateId": "adzf7nGZD1XCnyph"
}

or

{
	"error": {
		"code": 500,
		"messageCode": "ORG_1207",
		"message": "The org has reached the max Custom SSL certificate allowed.",
		"details": []
	}
}