w0x0021 / w21dsm_acme.sh

针对群晖系统,使用acme.sh进行Let's Encrypt证书申请的自动化脚本
Do What The F*ck You Want To Public License
30 stars 6 forks source link

DSM7.1 release 最新 1.1 使用过后 DDNS 界面转圈,证书界面无法进入报错 #5

Open fairyex opened 1 year ago

fairyex commented 1 year ago

之前没看到上一个 issue 就用了,现在是同样的问题,有没有什么补救的方法

fairyex commented 1 year ago

@w0x0021

w0x0021 commented 1 year ago

非常抱歉,我这套脚本没有做备份,我提供一个基础的文件你覆盖掉原有的INFO文件内容,测试一下看看能否解决

{
   "vHTDkQ" : {
      "desc" : "",
      "services" : [
         {
            "display_name" : "FTPS",
            "isPkg" : false,
            "owner" : "root",
            "service" : "ftpd",
            "subscriber" : "smbftpd"
         },
         {
            "display_name" : "DSM Desktop Service",
            "display_name_i18n" : "common:web_desktop",
            "isPkg" : false,
            "owner" : "root",
            "service" : "default",
            "subscriber" : "system"
         },
         {
            "display_name" : "Drive",
            "display_name_i18n" : "SYNO.SDS.Drive.Application:drive:displayname",
            "isPkg" : true,
            "owner" : "SynologyDrive",
            "service" : "SynologyDrive",
            "subscriber" : "SynologyDrive"
         },
         {
            "display_name" : "api.wangsansan.com",
            "isPkg" : true,
            "owner" : "root",
            "service" : "vhost_7065455a-c835-4cc3-9635-45f586013d57",
            "subscriber" : "WebStation"
         }
      ]
   },
   "y0RwiA" : {
      "desc" : "",
      "services" : []
   }
}
w0x0021 commented 1 year ago

将上述代码复制到/usr/syno/etc/certificate/_archive/INFO文件(先备份一下)

每个节点的6位字符串key,你修改一下对应关系,我简单列一下JSON的含义:

{
        "证书目录名称":{
                 "services" : {         // 该证书所涵盖的服务项
                             {
                                        "display_name": 服务名称
                                        "display_name_i18n" : 服务的启动名称
                             },
                 }
        }
}
w0x0021 commented 1 year ago

@fairyex

fairyex commented 1 year ago

好的我试试

fairyex commented 1 year ago

两个 INFO 文件不同之处在于:

原本的 INFO 文件开头:

{ "dyCI4X" : { "desc" : "我的域名", "services" : [ { "display_name" : "FTPS", "isPkg" : false, "owner" : "root", "service" : "ftpd", "subscriber" : "smbftpd" },

acme.sh 过后的 INFO 开头:

{ "97265c" : { "desc" : "" }, "dyCI4X" : { "desc" : "我的域名", "services" : [ { "display_name" : "FTPS", "isPkg" : false, "owner" : "root", "service" : "ftpd", "subscriber" : "smbftpd" },

修改对应的之后一切就恢复正常了,这个 Bug 定位和修复应该不难,有空可以修复一下

fairyex commented 1 year ago

@w0x0021