pull SSL certs via API

This commit is contained in:
2024-02-07 00:07:51 -05:00
parent 5f2f262806
commit b32b2de001
3 changed files with 35 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
'use strict';
const {createClient} = require('redis');
const client = createClient({});
client.connect();
async function getCert(host){
try{
console.log('looking for', host);
return JSON.parse(await client.GET(`${host}:latest`));
}catch(error){
return {}
}
}
module.exports = {getCert};