add certificate interface file

This commit is contained in:
Girish Ramakrishnan
2016-10-07 13:24:12 -07:00
parent 0ae1238233
commit 9b83a4d776

22
src/cert/interface.js Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
// -------------------------------------------
// This file just describes the interface
//
// New backends can start from here
// -------------------------------------------
exports = module.exports = {
getCertificate: getCertificate
};
var assert = require('assert');
function getCertificate(domain, options, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
return callback(new Error('Not implemented'));
}