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

23 lines
581 B
JavaScript
Raw Normal View History

2016-12-05 17:01:23 +01:00
'use strict';
exports = module.exports = {
getCertificate: getCertificate,
// testing
_name: 'fallback'
};
var assert = require('assert'),
debug = require('debug')('box:cert/fallback.js');
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 17:01:23 +01:00
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
2018-09-10 20:41:38 -07:00
debug('getCertificate: using fallback certificate', hostname);
2016-12-05 17:01:23 +01:00
return callback(null, '', '');
2016-12-05 17:01:23 +01:00
}