VMware Workspace ONE Community
ramkishore380
Contributor
Contributor

upload S/MIME history via RestAPI

How to upload S/MIME certificate history to WorkspaceOne UEM via rest API.  

We tried calling the upload S/MIME API multiple times with each PKCS#12 and the request succeeds. However, when the S/MIME certificate uploaded is pushed to a device using the "Credential" profile. Only the latest certificate gets installed and not the older certificate histroy. Any help on this is much appreciated 

Labels (1)
Reply
0 Kudos
1 Reply
antonioaraujo
Contributor
Contributor

Dear @ramkishore380,

I hope you are fine.

You reported that you called the upload S/MIME API multiple times with each PCKS#12 and the request was completed. I have been trying to use: 

POST /users/{id}/uploadsmimecerts

but I get errors.

Could you please share how you built the request body?

If I use the example value:

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

I get the error:

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

 

I would appreciate any comments on how to format the request body properly.

 

Best regards

Antonio

Reply
0 Kudos