浏览代码

Fixes creation of certificates using the http challenge

chaptergy 4 年之前
父节点
当前提交
83c5c55f32
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      backend/internal/certificate.js

+ 2 - 0
backend/internal/certificate.js

@@ -758,6 +758,7 @@ const internalCertificate = {
 	},
 
 	/**
+	 * Request a certificate using the http challenge
 	 * @param   {Object}  certificate   the certificate row
 	 * @returns {Promise}
 	 */
@@ -768,6 +769,7 @@ const internalCertificate = {
 			'--config "' + letsencryptConfig + '" ' +
 			'--cert-name "npm-' + certificate.id + '" ' +
 			'--agree-tos ' +
+			'--authenticator webroot ' +
 			'--email "' + certificate.meta.letsencrypt_email + '" ' +
 			'--preferred-challenges "dns,http" ' +
 			'--domains "' + certificate.domain_names.join(',') + '" ' +