Files
cloudron-box/src/cert/caas.js

23 lines
573 B
JavaScript
Raw Normal View History

2015-12-13 19:06:19 -08:00
'use strict';
exports = module.exports = {
2016-06-22 13:48:07 -05:00
getCertificate: getCertificate,
// testing
_name: 'caas'
2015-12-13 19:06:19 -08:00
};
var assert = require('assert'),
2016-12-05 16:07:06 +01:00
debug = require('debug')('box:cert/caas.js');
2015-12-13 19:06:19 -08:00
2018-09-10 20:41:38 -07:00
function getCertificate(hostname, domain, options, callback) {
assert.strictEqual(typeof hostname, 'string');
assert.strictEqual(typeof domain, 'string');
2016-12-05 16:07:06 +01:00
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
2015-12-13 19:06:19 -08:00
2018-09-10 20:41:38 -07:00
debug('getCertificate: using fallback certificate', hostname);
2015-12-13 19:06:19 -08:00
return callback(null, '', '');
2015-12-13 19:06:19 -08:00
}