Endpoint: CollectMC

https://secure.trust-provider.com/products/download/CollectMC

The CollectMC API endpoint allows you to collect an issued mark certificate.

Use the POST method for this endpoint.

Submit parameters in the x-www-form-urlencoded format.

The following table lists the required and optional parameters.

Parameter Type Required/Optional Max. Length Description

loginName

string

conditional

64 chars

Your account username.

This value is case sensitive.

loginPassword

string

conditional

128 chars

Your account password.

This value is case sensitive.

orderNumber

integer

required

The order number of the account.

responseType

integer

optional

Specifies the format of the returned certificate data.

The possible values are:

  • 0 = ZIP archive

  • 2 = PKCS7

For more details, see Certificate formats.

responseEncoding

integer

optional

Specifies the encoding of the returned certificate data.

The possible values are:

  • 0 = BASE64 encoded

  • 1 = binary encoded

logoHostedByCA

optional

string

1 char

Indicates whether the logo and certificates are hosted on the CA basis or not.

The possible options are:

  • Y - yes

  • N - no

If omitted, its value defaults to Y.

Sample request

curl --location --request POST 'https://secure.trust-provider.com/products/!CollectMC' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=yourLoginName' \
--data-urlencode 'loginPassword=yourPassword' \
--data-urlencode 'responseType=2' \
--data-urlencode 'responseEncoding=0'

Success response

// format-specific certificate output

Certificate formats

Format Name Content-Type Description

PKCS7

application/x-pkcs7-certificates

A single .p7b file containing the complete chain: root, intermediate, and end-entity certificates.

ZIP archive

application/zip

A .zip archive with separate files for root, intermediate, and end-entity certificates.

Individually encoded

text\plain

A single .pem file bundling root, intermediate, and end-entity certificates together.