无法使用saltStack生成let-encrypt证书

时间:2017-09-30 23:43:37

标签: salt-stack lets-encrypt

我正在尝试生成let-encrypt证书,以下是我遵循的步骤:

  • /srv/salt/pillars/minion下我添加了文件 init.sls

    letsencrypt: 
      config: |
        email = email
        auth:
          method: standalone
          type: http-01
          port: 8080
        agree-tos = True
        renew-by-default = True
      domainsets:
        mydomain:
          - mydomain.com
    

之后我更新了salt_pillar

# . update_salt.sh
# salt 'minion' state.sls letsencrypt

我得到了这个结果:

ID: letsencrypt-crontab-mydomain.com
Function: cron.present
Name: /usr/local/bin/renew_letsencrypt_cert.sh mydomain.com
Result: False
Comment: One or more requisite failed: letsencrypt.domains.create-initial-
cert-mydomain.com
Started:
Duration:
Changes:
------------
ID: create-fullchain-privkey-pem-for-mydomain.com
Function: cmd.run
Name: cat /etc/letsencrypt/live/mydomain.com/fullchain.pem \
       /etc/letsencrypt/live/mydomain.com/privkey.pem \
       > /etc/letsencrypt/live/mydomain.com/fullchain-privkey.pem && \ 
chmod 600 /etc/letsencrypt/live/mydomain.com/fullchain-privkey.pem

Result: False
Comment: One or more requisite failed: letsencrypt.domains.create-initial-cert-mydomain.com
Started:
Duration:
Changes:

我应该在配置中修改哪些内容才能获得证书?

0 个答案:

没有答案