2015-12-13 19:06:19 -08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
exports = module.exports = {
|
|
|
|
|
getCertificate: getCertificate
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var assert = require('assert'),
|
|
|
|
|
debug = require('debug')('box:cert/caas.js');
|
|
|
|
|
|
2015-12-17 13:17:46 -08:00
|
|
|
function getCertificate(domain, options, callback) {
|
2015-12-13 19:06:19 -08:00
|
|
|
assert.strictEqual(typeof domain, 'string');
|
2015-12-17 13:17:46 -08:00
|
|
|
assert.strictEqual(typeof options, 'object');
|
2015-12-13 19:06:19 -08:00
|
|
|
assert.strictEqual(typeof callback, 'function');
|
|
|
|
|
|
|
|
|
|
debug('getCertificate: using fallback certificate', domain);
|
|
|
|
|
|
|
|
|
|
return callback(null, 'cert/host.cert', 'cert/host.key');
|
|
|
|
|
}
|