Skip to content

Commit 1a96cf1

Browse files
committed
fix: cerbot using basic command
1 parent e605464 commit 1a96cf1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/other/nodeCertManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ async function createCert(host) {
3535
let test = await checkDns(host)
3636
console.log('checked dns from createCert', test)
3737
if (test) {
38-
await exec(`sudo certbot certonly --manual -d *.${host} -d ${host} --agree-tos --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory`);
39-
let exitCode = await spawn('sudo', ['certbot', 'certonly', '--manual', '-d', `*.${host}`, '-d', host, '--agree-tos', '--preferred-challenges', 'dns-01', '--server', 'https://acme-v02.api.letsencrypt.org/directory'], { stdio: 'inherit', cwd: process.cwd() })
38+
await exec(`sudo certbot certonly -d ${host}`);
39+
// let exitCode = await spawn('sudo', ['certbot', 'certonly', '--manual', '-d', `*.${host}`, '-d', host, '--agree-tos', '--preferred-challenges', 'dns-01', '--server', 'https://acme-v02.api.letsencrypt.org/directory'], { stdio: 'inherit', cwd: process.cwd() })
4040
if (exitCode !== 0) {
4141
failed.push({ name: false, des: `creating directory failed` })
4242
} else
@@ -143,6 +143,6 @@ async function test(host) {
143143
}
144144

145145

146-
test('cocreate.app')
146+
// test('cocreate.app')
147147

148148
module.exports = { checkDns, checkCert, createCert, deleteCert }

0 commit comments

Comments
 (0)