acme: fix http challenge

This commit is contained in:
Girish Ramakrishnan
2021-06-04 17:51:26 -07:00
parent cdbc51b208
commit ee7cddfbbc
2 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ function getExpiryDate(certFilePath) {
if (!fs.existsSync(certFilePath)) return null; // not found
const result = safe.child_process.spawnSync('/usr/bin/openssl', [ 'x509', '-enddate', '-noout', certFilePath ]);
const result = safe.child_process.spawnSync('/usr/bin/openssl', [ 'x509', '-enddate', '-noout', '-in', certFilePath ]);
if (!result) return null; // some error
const notAfter = result.stdout.toString('utf8').trim().split('=')[1];