The private key is used for applying the cert
And the cert should be used for reading issueDate
Signed-off-by: Jimmy Qin <[email protected]>
L.resolveDefault(fs.list('/etc/ssl/acme/'), []).then(files => {
let certs = [];
for (let f of files) {
- if (f.type == 'file' && f.name.match(/\.key$/)) {
+ if (f.type == 'file' && f.name.match(/\.fullchain\.crt$/)) {
certs.push(f);
}
}
]);
let rows = certs.map(function (cert) {
- let domain = cert.name.substring(0, cert.name.length - 4);
+ let domain = cert.name.replace(/\.fullchain\.crt$/, '');
let issueDate = new Date(cert.mtime * 1000).toLocaleDateString();
return [
domain,