question

Verum-3826 avatar image
0 Votes"
Verum-3826 asked Danstan-MSFT edited

How to decrypt data key of resource

Hi, I am working on Graph ChatMessage subscription. I am able to create subscription successfully but having hard time to decrypt the data at client. I created the certificate using certbot (which created privkey.pem and fullchain.pem) when creating the subscription I pass the fullchain.pem data Subscriptions request. I need help on how to decrypt the notification data in c#. sample code will help me.

microsoft-graph-applications
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Danstan-MSFT avatar image
0 Votes"
Danstan-MSFT answered Danstan-MSFT edited

Since you are dealing with protected APIs here, I am unable to test this to be able to test what you are facing. That said, have you checked out Decrypting resource data?. If you used the encryption key in the right format (note the base 64 encoding in Managing Keys) as per Setting up Notifications that include resource data you should be able to decrypt the data. Please try this and get back with any errors error you get.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.