How to obtain or renew Let's Encrypt certificate for SolusVM 2 Management node?

Follow
Was this article helpful?
2 out of 5 found this helpful
Return to top

Comments

3 comments

  • Avatar
    Andrew Cutler (Edited )

    The command to access the solus_nginx container would not work for me on CentOS 8 until I changed the enclosing braces {} to parentheses ().

    docker exec -ti ${docker ps --format '{{ .ID }}' -f name=solus_nginx} sh
    -bash: ${docker ps --format '{{ .ID }}' -f name=solus_nginx}: bad substitution

    docker exec -ti $(docker ps --format '{{ .ID }}' -f name=solus_nginx) sh
    / #
    0
    Comment actions Permalink
  • Avatar
    Hal Bouma

    It would be helpful if you also told us how to setup a cron job for this so that we don't have to look at this article every 3 months for renewing it. Thanks.

    1
    Comment actions Permalink
  • Avatar
    Nistor Ioan

    You could add one with example content:

    Inside container

    crontab -e

    Add something like:

    0 0 */1 * * installer -letsencrypt -check-renew -email admin@admin.com -domain domain.com -server-url https://acme-v02.api.letsencrypt.org/directory -out-cert /etc/nginx/certs/cert.crt -out-priv /etc/nginx/certs/priv.key -http-port 5080 -tls-port 5443  >> /proc/1/fd/2 2>&1

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request