mirror of
https://github.com/avwo/whistle.git
synced 2026-10-23 18:09:20 +08:00
10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
var getRootCAFile = require('../../../lib/https/ca').getRootCAFile;
|
|
|
|
module.exports = function(req, res) {
|
|
var type = req.query.type;
|
|
if (type !== 'cer' && type !== 'pem') {
|
|
type = 'crt';
|
|
}
|
|
res.download(getRootCAFile(), 'rootCA.' + type);
|
|
};
|