Unable to Encrypt/Decrypt in Mongo Shell


We’re using MongoDB 4.4 Community Edition and currently testing out the Mongo CSFLE feature for our Project. We are able to encrypt the documents successfully. We want to query those documents from Shell side to view the documents in plaintext. However, the encrypt and decrypt functions are not working inside the Mongo Shell. We are passing the exact CUSTOMER MASTER KEY AND DATA ENCRYPTION KEY. It’s always giving us the HMAC Data authentication Failed. Another instance with the same version and environment is able to do it inside shell. Please help us out.