keycred.js
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;
}
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;
}
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 ; }
Generate a new KeyCred using cert parameters.
@param certparams
@constructor
Generate a new KeyCred using cert parameters .