When using webhook for get chat/channel messages , the data is encrypted so we need to create a certificate to encrypt/decrypt the content.
Through Azure Key Vault you can create a certificate and access it from the code.
See here the documentation how to create a certificate step by step: https://github.com/microsoftgraph/aspnetcore-webhooks-sample/blob/master/KEYVAULT.md