明确证书密钥用途

This commit is contained in:
xuans 2026-10-02 07:43:51 +08:00
parent dd2aedebd1
commit 84ec7c6fb4
2 changed files with 2 additions and 2 deletions

View File

@ -850,7 +850,7 @@ export function useDashboard() {
importError.value = "";
importResult.value = null;
if (!importFiles.value.certificate || !importFiles.value.private_key) {
importError.value = "请选择证书文件和私钥文件";
importError.value = "请选择证书文件和证书密钥文件";
return;
}
const maxSize = 20 * 1024 * 1024;

View File

@ -460,7 +460,7 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi
<input type="file" accept=".pem,.crt,.cer,.txt" required @change="selectCertificateImportFile('certificate', $event)" />
</label>
<label class="field">
<span>私钥文件 <small>必选,内容只上传到服务端并按安全流程处理</small></span>
<span>证书密钥文件 <small>必选,仅用于 HTTPS 证书部署</small></span>
<input type="file" accept=".pem,.key,.txt" required @change="selectCertificateImportFile('private_key', $event)" />
</label>
<label class="field">