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
/certificates API key + App IDStores a certificate for signing. The response returns the certificateId and the credentials needed to sign with it.
Request bodyapplication/json
pkcs12string· base64RequiredThe certificate and its private key, as a PKCS #12 file, base64-encoded.
passwordstringRequiredPassword of the PKCS #12 file.
aliasstringOptionalAlias of the certificate.
usernamestringOptionalUser name of the holder.
namestringOptionalName of the holder.
surnamestringOptionalSurname of the holder.
emailstringOptionalEmail address of the holder.
mobilestringOptionalMobile phone number of the holder.
Response200 · application/json
certificateIdstringOptionalIdentifier of the certificate.
aliasstringOptionalAlias of the certificate.
usernamestringOptionalUser name of the holder.
namestringOptionalName of the holder.
surnamestringOptionalSurname of the holder.
emailstringOptionalEmail address of the holder.
mobilestringOptionalMobile phone number of the holder.
passwordstringOptionalPassword to use the certificate.
pinstringOptionalPIN to sign with the certificate.
pukstringOptionalPUK to unblock the PIN.
statusstringOptionalStatus 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_KEYandAPP_IDheaders 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"
}'
application/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
/certificates API key + App IDReturns every certificate of your APP_ID.
Status codes
- 200An array with the certificates of your
APP_ID. - 401The
API_KEYandAPP_IDheaders 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>'
application/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
/certificates/{certificateId} API key + App IDReturns the information of a certificate.
Path parameters
certificateIdstringRequiredIdentifier of the certificate.
Response200 · application/json
Returns the The certificate objectStatus codes
- 200The certificate.
- 401The
API_KEYandAPP_IDheaders 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>'
application/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
/certificates/{certificateId} API key + App IDUpdates a certificate and its data.
Path parameters
certificateIdstringRequiredIdentifier of the certificate.
Request bodyapplication/json
pkcs12string· base64RequiredThe certificate and its private key, as a PKCS #12 file, base64-encoded.
passwordstringRequiredPassword of the PKCS #12 file.
aliasstringOptionalAlias of the certificate.
usernamestringOptionalUser name of the holder.
namestringOptionalName of the holder.
surnamestringOptionalSurname of the holder.
emailstringOptionalEmail address of the holder.
mobilestringOptionalMobile phone number of the holder.
Response200 · application/json
Returns the The certificate objectStatus codes
- 200The certificate has been updated.
- 401The
API_KEYandAPP_IDheaders 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"
}'
application/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
/certificates/{certificateId}/disable API key + App IDDisables a certificate: it cannot sign documents until it is enabled again.
Path parameters
certificateIdstringRequiredIdentifier of the certificate.
Response200 · application/json
Returns the The certificate objectStatus codes
- 200The certificate has been disabled.
- 401The
API_KEYandAPP_IDheaders 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>'
application/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
/certificates/{certificateId}/enable API key + App IDEnables a disabled certificate.
Path parameters
certificateIdstringRequiredIdentifier of the certificate.
Response200 · application/json
Returns the The certificate objectStatus codes
- 200The certificate has been enabled.
- 401The
API_KEYandAPP_IDheaders 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>'
application/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.
certificateIdstringOptionalIdentifier of the certificate.
aliasstringOptionalAlias of the certificate.
usernamestringOptionalUser name of the holder.
namestringOptionalName of the holder.
surnamestringOptionalSurname of the holder.
emailstringOptionalEmail address of the holder.
mobilestringOptionalMobile phone number of the holder.
statusstringOptionalStatus of the certificate.
ACTIVEIt can sign documents.DISABLEDIt cannot sign documents until it is enabled again.