'How to add smime certificate to outlook contacts programmatically?

We're currently working on a project that requires adding S/MIME certificates to outlook contacts. Currently there's no api to add or retrieve S/MIME related information with existing solutions (We looked into Graph API but it doesn't provide the functionality. We've also looked into outlook addin JS docs. It also, doesn't reference anything related to S/MIME).

Our guess is that we need to add the certificates in the local device. We got this code snippet on Github which we think adds S/MIME certificate to our own email only but not contacts.

So, how to add or import S/MIME certificate of outlook contacts Programmatically?

Certificate field on Contacts



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source