Skip to content

changeNotification.EncryptedContent.DecryptAsync() is always returning error #35

Description

@mohammadamer

Hi @PaoloPia

I was trying to implement a subscription to receive notifications the same way that you have done in this solution MSGraphSDK4Subscriptions but I stumbled upon an issue with decrypt the encryptedContent.

Message: Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException: 'Access denied.'

Code where it raises the issue:
var attachedMessage = await notificationItem.EncryptedContent.DecryptAsync<ChatMessage>((id, thumbprint) => Task.FromResult(certificate));

do you maybe have any clue on where the issue might be.
Appreciate your support.!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions