获取平台证书列表 
获取商户当前可用的平台证书列表。微信支付提供该接口,帮助商户后台系统实现平台证书的平滑更换。 官方开发文档 官方文档
js
const { Aes } = require('wechatpay-axios-plugin')
wxpay.v3.certificates.get({ params })
.then(({ data: { data } }) => data.map(
  ({
    effective_time, expire_time, serial_no,
    encrypt_certificate: { ciphertext, nonce, associated_data }
  }) => ({
    effective_time, expire_time, serial_no,
    x509_certificate: Aes.AesGcm.decrypt(ciphertext, apiv3Key, nonce, associated_data) 
  })
))