23 lines
581 B
JavaScript
23 lines
581 B
JavaScript
'use strict';
|
|
|
|
exports = module.exports = {
|
|
getCertificate: getCertificate,
|
|
|
|
// testing
|
|
_name: 'fallback'
|
|
};
|
|
|
|
var assert = require('assert'),
|
|
debug = require('debug')('box:cert/fallback.js');
|
|
|
|
function getCertificate(hostname, domain, options, callback) {
|
|
assert.strictEqual(typeof hostname, 'string');
|
|
assert.strictEqual(typeof domain, 'string');
|
|
assert.strictEqual(typeof options, 'object');
|
|
assert.strictEqual(typeof callback, 'function');
|
|
|
|
debug('getCertificate: using fallback certificate', hostname);
|
|
|
|
return callback(null, '', '');
|
|
}
|