code: function (pem) {
        var certificate = forge.pki.certificateFromPem(pem);
        var issuerCert = caStore.getIssuer(certificate);
        if (issuerCert) {
          try {
            return issuerCert.verify(certificate);
          } catch (e) {
            return false;
          }
        }
        return false;
      }
docs: Verify that a X.509 certificate is generated by the CA
  @param {String} pem The certificate to verify in pem format
  @returns {Boolean} True if the X.509 certificate is original