如何在Redbird代理服务器上续订SSL证书

时间:2019-08-25 08:27:46

标签: ssl lets-encrypt redbird

我使用redbird代理服务器来提供我的应用程序。今天我的证书过期了。 我该如何续约?我通过此instruction进行了尝试,但看起来它仅适用于ngnix服务器。

我的server.js

const proxy = require('redbird')({
  port: 80,
  xfwd: false,
  letsencrypt: {
    path: "certs",
    port: 4444
  },
  ssl: {
    port: 443
  }
});

proxy.register("domain.com", "http://localhost:3000", {
    ssl: {
      letsencrypt: {
        email: "email@gmail.com",
        production: true
      }
    }
});

proxy.register("www.domain.com", "http://localhost:3000", {
    ssl: {
      letsencrypt: {
        email: "email.com",
        production: true
      }
    }
});

文件夹结构:

drwxr-xr-x   8 root    root     4096 Mar 27 22:23 certs 
drwxrwxr-x 157 redbird redbird  4096 Mar 27 21:33 node_modules
-rw-rw-r--   1 redbird redbird   142 Mar 27 21:33 package.json
-rw-rw-r--   1 redbird redbird   887 Aug 23 22:40 server.js
-rw-rw-r--   1 redbird redbird 48105 Mar 27 21:33 yarn.lock

1 个答案:

答案 0 :(得分:0)

我刚刚删除了certs文件夹,redbird用有效的证书创建了新的certs文件夹。