Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.