Skip to main content

Certificates

Store the certificates of the people who sign with a certificate. Certificates are uploaded as PKCS #12 files and can be disabled and enabled again.

A PKCS #12 file contains a private key. Send it only from your backend, over TLS, and never log the request.

Add a certificate​

POST/certificates API key + App ID

Stores a certificate for signing. The response returns the certificateId and the credentials needed to sign with it.

Request bodyapplication/json

  • pkcs12string· base64Required

    The certificate and its private key, as a PKCS #12 file, base64-encoded.

  • passwordstringRequired

    Password of the PKCS #12 file.

  • aliasstringOptional

    Alias of the certificate.

  • usernamestringOptional

    User name of the holder.

  • namestringOptional

    Name of the holder.

  • surnamestringOptional

    Surname of the holder.

  • emailstringOptional

    Email address of the holder.

  • mobilestringOptional

    Mobile phone number of the holder.

Response200 · application/json

  • certificateIdstringOptional

    Identifier of the certificate.

  • aliasstringOptional

    Alias of the certificate.

  • usernamestringOptional

    User name of the holder.

  • namestringOptional

    Name of the holder.

  • surnamestringOptional

    Surname of the holder.

  • emailstringOptional

    Email address of the holder.

  • mobilestringOptional

    Mobile phone number of the holder.

  • passwordstringOptional

    Password to use the certificate.

  • pinstringOptional

    PIN to sign with the certificate.

  • pukstringOptional

    PUK to unblock the PIN.

  • statusstringOptional

    Status of the certificate.

    • ACTIVEIt can sign documents.
    • DISABLEDIt cannot sign documents until it is enabled again.

Status codes

  • 200The certificate has been added.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
curl -X POST 'https://mobbsign.mobbeel.com/api/v1/certificates' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>' \
-H 'Content-Type: application/json' \
-d '{
"pkcs12": "MIIKVgIBAzCCChwGCSqGSIb3DQEHAaCCCg0EggoJMIIKBTCCBb…",
"password": "p12-password",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000"
}'
Responses
200OKapplication/json
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "ACTIVE",
"password": "••••••••",
"pin": "••••",
"puk": "••••••••"
}

List certificates​

GET/certificates API key + App ID

Returns every certificate of your APP_ID.

Status codes

  • 200An array with the certificates of your APP_ID.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
  • 404There are no certificates for your APP_ID.
curl -X GET 'https://mobbsign.mobbeel.com/api/v1/certificates' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>'
Responses
200OKapplication/json
[
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "ACTIVE"
}
]

Get a certificate​

GET/certificates/{certificateId} API key + App ID

Returns the information of a certificate.

Path parameters

  • certificateIdstringRequired

    Identifier of the certificate.

Response200 · application/json

Returns the The certificate object

Status codes

  • 200The certificate.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
  • 404The certificate does not exist or does not belong to your APP_ID.
curl -X GET 'https://mobbsign.mobbeel.com/api/v1/certificates/{certificateId}' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>'
Responses
200OKapplication/json
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "ACTIVE"
}

Update a certificate​

PUT/certificates/{certificateId} API key + App ID

Updates a certificate and its data.

Path parameters

  • certificateIdstringRequired

    Identifier of the certificate.

Request bodyapplication/json

  • pkcs12string· base64Required

    The certificate and its private key, as a PKCS #12 file, base64-encoded.

  • passwordstringRequired

    Password of the PKCS #12 file.

  • aliasstringOptional

    Alias of the certificate.

  • usernamestringOptional

    User name of the holder.

  • namestringOptional

    Name of the holder.

  • surnamestringOptional

    Surname of the holder.

  • emailstringOptional

    Email address of the holder.

  • mobilestringOptional

    Mobile phone number of the holder.

Response200 · application/json

Returns the The certificate object

Status codes

  • 200The certificate has been updated.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
  • 404The certificate does not exist or does not belong to your APP_ID.
curl -X PUT 'https://mobbsign.mobbeel.com/api/v1/certificates/{certificateId}' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>' \
-H 'Content-Type: application/json' \
-d '{
"pkcs12": "MIIKVgIBAzCCChwGCSqGSIb3DQEHAaCCCg0EggoJMIIKBTCCBb…",
"password": "p12-password",
"alias": "jdoe-signing"
}'
Responses
200OKapplication/json
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "ACTIVE"
}

Disable a certificate​

POST/certificates/{certificateId}/disable API key + App ID

Disables a certificate: it cannot sign documents until it is enabled again.

Path parameters

  • certificateIdstringRequired

    Identifier of the certificate.

Response200 · application/json

Returns the The certificate object

Status codes

  • 200The certificate has been disabled.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
  • 404The certificate does not exist or does not belong to your APP_ID.
curl -X POST 'https://mobbsign.mobbeel.com/api/v1/certificates/{certificateId}/disable' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>'
Responses
200OKapplication/json
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "DISABLED"
}

Enable a certificate​

POST/certificates/{certificateId}/enable API key + App ID

Enables a disabled certificate.

Path parameters

  • certificateIdstringRequired

    Identifier of the certificate.

Response200 · application/json

Returns the The certificate object

Status codes

  • 200The certificate has been enabled.
  • 401The API_KEY and APP_ID headers are missing or are not valid.
  • 403Your credentials do not have permission for this resource.
  • 404The certificate does not exist or does not belong to your APP_ID.
curl -X POST 'https://mobbsign.mobbeel.com/api/v1/certificates/{certificateId}/enable' \
-H 'API_KEY: <API_KEY>' \
-H 'APP_ID: <APP_ID>'
Responses
200OKapplication/json
{
"certificateId": "c9a8b7d6-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"alias": "jdoe-signing",
"username": "jdoe",
"name": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com",
"mobile": "+34600000000",
"status": "ACTIVE"
}

The certificate object​

A certificate stored in MobbSign Server. The private key and its passwords are never returned, except the credentials returned when the certificate is added.

  • certificateIdstringOptional

    Identifier of the certificate.

  • aliasstringOptional

    Alias of the certificate.

  • usernamestringOptional

    User name of the holder.

  • namestringOptional

    Name of the holder.

  • surnamestringOptional

    Surname of the holder.

  • emailstringOptional

    Email address of the holder.

  • mobilestringOptional

    Mobile phone number of the holder.

  • statusstringOptional

    Status of the certificate.

    • ACTIVEIt can sign documents.
    • DISABLEDIt cannot sign documents until it is enabled again.