Mongodb Certificates with Azure KeyVault


We have Atlas MongoDb connections using certificates. We are not allowed to use UserId/password.
I would like to use node.js file using mongodb certificates from Azure Keyvault.

I checked the example which says path_to_certificate.
What should be my path_to_certificate if I get pem or pfx file from the Azure KeyVault. If there is any other way to do this, please let me know.

const { MongoClient, ServerApiVersion } = require(‘mongodb’);
const fs = require(‘fs’);
const credentials = ‘<path_to_certificate>’
const client = new MongoClient(‘mongodb+srv://’, {
sslKey: credentials,
sslCert: credentials,
serverApi: ServerApiVersion.v1