add a backend for caas

This commit is contained in:
Girish Ramakrishnan
2015-12-13 19:06:19 -08:00
parent 936c1989f1
commit 7b40674c0d
2 changed files with 21 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
'use strict';
exports = module.exports = {
getCertificate: getCertificate
};
var assert = require('assert'),
debug = require('debug')('box:cert/caas.js');
function getCertificate(domain, outdir, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof outdir, 'string');
assert.strictEqual(typeof callback, 'function');
debug('getCertificate: using fallback certificate', domain);
return callback(null, 'cert/host.cert', 'cert/host.key');
}