VMware Workspace ONE Community
antonioaraujo
Contributor
Contributor

Workspace ONE UEM API: upload mime certs API call

Dear All,

I hope you are fine.

I am exploring and testing Workspace ONE UEM (23.2.0.26) API to upload MIME certificates for the enrollment user by enrollment user id.

According to the documentation /users/{id}/uploadsmimecerts requires two parameters:

-id: The enrollment user id (Required).

-certificates: The MIME certificate details (Required).

 

The example value shown in the documentation follows:

 

{
  "Encryption": {
    "CertificatePayload": "0wYwYJKwYBBAGCNxEBMVYeVABNAGkAYwByAG",
    "Password": "P@ssw0rd"
  },
  "Signing": {},
  "Archived": [
    {}
  ]
}

 

 

But when I try the example I got the following:

 

{
  "errorCode": 6043,
  "message": "Certificate payload cannot be empty",
  "activityId": "ee2b9048-c4df-4bd1-8873-zxcvbnmkjhgfd"
}

 

 

Why certificate payload is empty?

 

Could you please guide me on how to build the request body properly?

 

Is it possible to upload only a signing certificate for the  enrollment user?

 

I have checked the VMware documentation but I have not found a working example of /users/{id}/uploadsmimecerts

 

Best regards

 

Antonio

Reply
0 Kudos
2 Replies
ogushia
Hot Shot
Hot Shot

I have tried uploadsmimecerts API and successfully update my certificate file (PFX file).

To upload only signing certificate, parameter value is like following.
{
"Signing": {
"CertificatePayload": "BASE64 encoded value of your certificate file",
"Password": "your certificate password"
}
}

 

Following is real example.
{
"Signing": {
"CertificatePayload": "MIIZ...6AgIIAA==",
"Password": "P@ssw0rd"
}
}

antonioaraujo
Contributor
Contributor

Dear @ogushia ,

I hope you are fine.

Thank you very much for your reply and support. I just tested and it worked fine.

Have a nice day

Best regards

Antonio

Reply
0 Kudos