diff --git a/CommonServer/Utils/Greenlock/Greenlock.ts b/CommonServer/Utils/Greenlock/Greenlock.ts index 09f6773df0..1cc99c587a 100644 --- a/CommonServer/Utils/Greenlock/Greenlock.ts +++ b/CommonServer/Utils/Greenlock/Greenlock.ts @@ -124,7 +124,11 @@ export default class GreenlockUtil { email: LetsEncryptNotificationEmail.toString(), termsOfServiceAgreed: true, challengePriority: ['http-01'], // only http-01 challenge is supported by oneuptime - challengeCreateFn: async (authz: acme.Authorization, challenge: Challenge , keyAuthorization: string) => { + challengeCreateFn: async ( + authz: acme.Authorization, + challenge: Challenge, + keyAuthorization: string + ) => { // Satisfy challenge here /* http-01 */ if (challenge.type === 'http-01') { @@ -141,7 +145,10 @@ export default class GreenlockUtil { }); } }, - challengeRemoveFn: async (authz: acme.Authorization, challenge: Challenge) => { + challengeRemoveFn: async ( + authz: acme.Authorization, + challenge: Challenge + ) => { // Clean up challenge here if (challenge.type === 'http-01') { @@ -160,7 +167,9 @@ export default class GreenlockUtil { }); // get expires at date from certificate - const cert: acme.CertificateInfo = await acme.forge.readCertificateInfo(certificate); + const cert: acme.CertificateInfo = await acme.forge.readCertificateInfo( + certificate + ); const issuedAt: Date = cert.notBefore; const expiresAt: Date = cert.notAfter; diff --git a/Nginx/Jobs/AcmeWriteCertificates.ts b/Nginx/Jobs/AcmeWriteCertificates.ts index 69ce4114c3..13f0e7c86b 100644 --- a/Nginx/Jobs/AcmeWriteCertificates.ts +++ b/Nginx/Jobs/AcmeWriteCertificates.ts @@ -45,7 +45,6 @@ export default class Jobs { logger.error(err); } - // Write to disk. await LocalFile.write( `/etc/nginx/certs/StatusPageCerts/${cert.domain}.crt`,