import fs from 'fs'; import https from 'https'; import { env } from './env/env.js'; import path from 'path'; const certificatesDir = String(env.ALAI_CERTIFICATES_DIR) const certificateName = String(env.ALAI_CERTIFICATE_NAME) const certificatePassword = String(env.ALAI_CERTIFICATE_PASSWORD) export const httpsAgent = new https.Agent({ pfx: fs.readFileSync(path.join(certificatesDir, certificateName)), passphrase: certificatePassword });