code: function formatCsrAltNames(altNames) {
      return altNames.map((value) => {
          const type = net.isIP(value) ? 7 : 2;
          return { type, value };
      });
  }
docs: Create array of alt names for Certificate Signing Requests
  Note: https://github.com/digitalbazaar/forge/blob/dfdde475677a8a25c851e33e8f81dca60d90cfb9/lib/x509.js#L1444-L1454
  
  @private
  @param {string[]} altNames Alt names
  @returns {object[]} Certificate Signing Request alt names array