Skip to content

Instantly share code, notes, and snippets.

@tjfontaine
Created April 15, 2014 20:29
Show Gist options
  • Select an option

  • Save tjfontaine/10769923 to your computer and use it in GitHub Desktop.

Select an option

Save tjfontaine/10769923 to your computer and use it in GitHub Desktop.
function Certificate(Buffer || String) {
this.issuer = '';
this.before = new Date();
this.after = new Date();
this.serial = '';
this.subject = '';
this.algorithm = '';
this.signature = new Buffer();
}
Certificate.prototype.validOn(date) { return true; }
// maybe 'pem'?
Certificate.prototype.toString(<encoding>) { return ''; }
Certificate.prototype.toBuffer() { return new Buffer(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment