Import Pfx

Import a Pfx file

post

This can be used to import a Pfx file. If the pfx password is used (optional), the file has to be in a pfx format and will be used as a Certificate file, as well.

Body
PfxPasswordstringOptional

Password of the pfx File to be uploaded

PfxFilestring · binaryOptional

Private Key File to be uploaded.

NamestringOptional

The name of the target Certificate

SiteIdinteger · int32Optional

Site ID in which to add the Certificate

DescriptionstringOptional

A user-defined Certificate description

Usagestring[Flag] · enumOptional

Certificate Usage Certificate Usage

Possible values:
EnabledbooleanOptional

Whether to enable or disable the certificate being created

Responses
201
Created
application/json; api-version=1.0
post
POST /api/Certificates/ImportPfx HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 148

{
  "PfxPassword": "text",
  "PfxFile": "binary",
  "Name": "text",
  "SiteId": 1,
  "Description": "text",
  "Usage": [
    "0 = None",
    "2 = Gateway",
    "4 = HALB"
  ],
  "Enabled": true
}
{
  "id": 1,
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-07-04T19:18:04.533Z",
  "timeLastMod": "2025-07-04T19:18:04.533Z",
  "status": [
    "0 = Valid",
    "1 = Expiring",
    "2 = Expired",
    "3 = InProgress",
    "4 = Revoked",
    "5 = Issuing",
    "6 = IssuingFailed",
    "7 = Renewing",
    "8 = RenewingFailed",
    "9 = Revoking",
    "10 = RevokingFailed"
  ],
  "publicKey": "text",
  "expirationDate": "2025-07-04T19:18:04.533Z",
  "keySize": [
    "0 = KeySize1024",
    "1 = KeySize2048",
    "2 = KeySize4096",
    "3 = KeySize3072",
    "4 = KeySize521",
    "255 = KeySizeUnknown"
  ],
  "commonName": "text",
  "name": "text",
  "siteId": 1,
  "enabled": true,
  "type": [
    "0 = SelfSigned",
    "1 = Request",
    "2 = Imported",
    "3 = LetsEncrypt"
  ],
  "usage": [
    "0 = None",
    "2 = Gateway",
    "4 = HALB"
  ],
  "intermediate": "text",
  "request": "text",
  "description": "text",
  "alternateNames": "text"
}

Last updated

Was this helpful?