This method will generate a certificate automatically via contacting Sectigo CA and save the certificate in Vault for a particular account Id.

This method is not SLA bound. Only to be used for configuration purposes.

Request

Method URL
POST https://[{domain}]/api/account/[{accountId}]/certificate

Request Headers

Header Description
Authorization Contains token string to allow request authentication and authorization. Supports OAuth 2 Only.

Request Body

This end-point receives information in Json format. The below is an example of the body in this format.

Key Value
certificateName *Certificate name (Alphanumeric only)
p12Password *password

Note: Password must follow below guidelines.

1) At least one digit [0-9].

2) At least one lowercase character [a-z].

3) At least one uppercase character [A-Z].

4) At least one special character [!@#$%^&*()–_+.]

5) At least 8 characters in length, but no more than 500.

Path Parameters

Parameter Description Type/Value
accountId LP site ID String

Response

Response Codes

Code Description
201 Created
401 Not Authenticated
403 Not Authorized
500 Internal Server Error

Response Body

for example:

{
   "successfulySavedCertificates":[
      {
         "id":2628739923,
         "deleted":false,
         "name":"{certificateName}",
         "displayName":"{certificateName}",
         "siteId":"{accountId}",
         "status":"Available",
	 "expirationDate": null
      }
   ],
   "failedSaveToVaultCertificates":[

   ]
}

Entity Structure:

Attribute Description Type/Value Required Notes
id A certificate's unique object ID in the account config table. long number    
deleted Indicates whether the certificate is deleted or not. Boolean    
name A certificate's unique name. unique string    
displayName A certificate's display name. string    
siteId The account ID the certificate is associated with. string    
status Indicates if the certificate is available/not available/expired string   (the certificate is available if it exists at both HashiCorp Vault and LivePerson's Data Base and if isn't expired)
expirationDate certificate's expiration date. string