I'm trying to create a subscription to MS Graph for MS Teams chats. I've been reading through this documentation: https://learn.microsoft.com/en-us/graph/teams-changenotifications-teammembership
The sample POST message looks like this:
POST https://graph.microsoft.com/v1.0/subscriptions
Content-Type: application/json
{
"changeType": "created,deleted,updated",
"notificationUrl": "https://webhook.azurewebsites.net/api/resourceNotifications",
"resource": "/teams/{team-id}/members",
"includeResourceData": true,
"encryptionCertificate": "{base64encodedCertificate}",
"encryptionCertificateId": "{customId}",
"expirationDateTime": "2019-09-19T11:00:00.0000000Z",
"clientState": "{secretClientState}"
}
It's not clear to me how I would create the encryption certificate or the certificateId values
I'm currently googling / poking around in the MS graph docs but if someone could just point me to the right article, I'd appreciate it.