code: function (certparams) {
      var keys = forge.pki.rsa.generateKeyPair(2048);
      this.publicKey = keys.publicKey;
      this.privateKey = keys.privateKey;
      this.cert = this.createCertificate(certparams);
      this.keycred = null;
      this.digest = null;
  }
docs: Generate a new KeyCred using cert parameters.
  @param certparams
  @constructor