Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Certiticate renewal issue

Certiticate renewal issue

Scheduled Pinned Locked Moved Solved Support
digitaloceancertificates
12 Posts 3 Posters 2.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Recliner2042

    @seanmahrt I'm having the same issue. How did you fix the port 80 forwarding?

    girishG Do not disturb
    girishG Do not disturb
    girish
    Staff
    wrote on last edited by
    #2

    @Recliner2042 maybe you can describe your setup?

    R 1 Reply Last reply
    0
    • girishG girish

      @Recliner2042 maybe you can describe your setup?

      R Offline
      R Offline
      Recliner2042
      wrote on last edited by
      #3

      @girish Digital Ocean. Let's Encrypt won't renew. The Expired Certificate warning in the browser says "You cannot visit this website right now because the website uses HSTS."

      girishG 1 Reply Last reply
      0
      • R Recliner2042

        @girish Digital Ocean. Let's Encrypt won't renew. The Expired Certificate warning in the browser says "You cannot visit this website right now because the website uses HSTS."

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #4

        @Recliner2042 Port forwarding is not needed for Digital Ocean setups. It should work automatically. I suspect the issue here is something else.

        For a start, you can simply use another browser. Follow this tutorial https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/ to clear the HSTS for your domain. After that, accept (any) selfsigned certificate and login. After login, Domains -> Renew All Certs. Can you check the logs of the certificate renewal to see what is going wrong?

        R 2 Replies Last reply
        0
        • girishG girish

          @Recliner2042 Port forwarding is not needed for Digital Ocean setups. It should work automatically. I suspect the issue here is something else.

          For a start, you can simply use another browser. Follow this tutorial https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/ to clear the HSTS for your domain. After that, accept (any) selfsigned certificate and login. After login, Domains -> Renew All Certs. Can you check the logs of the certificate renewal to see what is going wrong?

          R Offline
          R Offline
          Recliner2042
          wrote on last edited by
          #5
          This post is deleted!
          1 Reply Last reply
          0
          • girishG girish

            @Recliner2042 Port forwarding is not needed for Digital Ocean setups. It should work automatically. I suspect the issue here is something else.

            For a start, you can simply use another browser. Follow this tutorial https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/ to clear the HSTS for your domain. After that, accept (any) selfsigned certificate and login. After login, Domains -> Renew All Certs. Can you check the logs of the certificate renewal to see what is going wrong?

            R Offline
            R Offline
            Recliner2042
            wrote on last edited by
            #6

            @girish I have these notifications in cloudron:
            Email is not configured properly 17 hours ago
            Rebbot Required 17 hours ago
            Reboot Required Yesterday
            The mysql service ran out of memory 6 days ago

            After clicking Renew All Certs and checking the logs, there is this error:
            box:reverseproxy ensureCertificate: error: DigitalOcean DNS error 401 {"id":"Unauthorized","message":"Unable to authenticate you"}

            girishG 1 Reply Last reply
            0
            • R Recliner2042

              @seanmahrt I'm having the same issue. How did you fix the port 80 forwarding?

              S Offline
              S Offline
              seanmahrt
              wrote on last edited by
              #7

              @Recliner2042 I eventually discovered a problem with my transparent proxy running in front of cloudron. It passed some traffic, blocked others, and the HSTS cache probably didn't help.

              The other trick is to try incognito mode on chrome if you have HSTS headaches. That seemed to help me.

              Sean

              1 Reply Last reply
              1
              • girishG girish marked this topic as a question on
              • R Recliner2042

                @girish I have these notifications in cloudron:
                Email is not configured properly 17 hours ago
                Rebbot Required 17 hours ago
                Reboot Required Yesterday
                The mysql service ran out of memory 6 days ago

                After clicking Renew All Certs and checking the logs, there is this error:
                box:reverseproxy ensureCertificate: error: DigitalOcean DNS error 401 {"id":"Unauthorized","message":"Unable to authenticate you"}

                girishG Do not disturb
                girishG Do not disturb
                girish
                Staff
                wrote on last edited by
                #8

                @Recliner2042 The Digital Ocean key for your domain is not working anymore. Go to Domains -> Select the domain and click Save. You will see an error since the API key is not valid. Maybe you revoked it?

                As for the notifications, it seems reboot is required (after security updates). And maybe give the MySQL service more memory (Services -> MySQL -> bump memory limit). These are not the reasons for the cert failure though.

                R 1 Reply Last reply
                0
                • girishG girish

                  @Recliner2042 The Digital Ocean key for your domain is not working anymore. Go to Domains -> Select the domain and click Save. You will see an error since the API key is not valid. Maybe you revoked it?

                  As for the notifications, it seems reboot is required (after security updates). And maybe give the MySQL service more memory (Services -> MySQL -> bump memory limit). These are not the reasons for the cert failure though.

                  R Offline
                  R Offline
                  Recliner2042
                  wrote on last edited by
                  #9

                  @girish Are you saying that I need to create a Digital Ocean API Token and set its expiration to Never, in order for Cloudron to use Let's Encrypt?

                  girishG 1 Reply Last reply
                  0
                  • R Recliner2042

                    @girish Are you saying that I need to create a Digital Ocean API Token and set its expiration to Never, in order for Cloudron to use Let's Encrypt?

                    girishG Do not disturb
                    girishG Do not disturb
                    girish
                    Staff
                    wrote on last edited by
                    #10

                    @Recliner2042 yes. Let's Encrypt certificates are renewed via DNS automation. So, Cloudron needs access to the DNS to get a cert. Without it, it cannot get a cert.

                    You can also put some specific expiration time for the token. Just remember to refresh it in Cloudron right before the expiration period with another token manually.

                    BTW, when using DNS to get certs, you don't need port 80.

                    R 1 Reply Last reply
                    0
                    • girishG girish

                      @Recliner2042 yes. Let's Encrypt certificates are renewed via DNS automation. So, Cloudron needs access to the DNS to get a cert. Without it, it cannot get a cert.

                      You can also put some specific expiration time for the token. Just remember to refresh it in Cloudron right before the expiration period with another token manually.

                      BTW, when using DNS to get certs, you don't need port 80.

                      R Offline
                      R Offline
                      Recliner2042
                      wrote on last edited by Recliner2042
                      #11

                      @girish Does Cloudron need a read and write token, or just a read token, to access DNS?

                      girishG 1 Reply Last reply
                      0
                      • R Recliner2042

                        @girish Does Cloudron need a read and write token, or just a read token, to access DNS?

                        girishG Do not disturb
                        girishG Do not disturb
                        girish
                        Staff
                        wrote on last edited by
                        #12

                        @Recliner2042 It needs to write to DNS . You can read more at https://letsencrypt.org/docs/challenge-types/ (dns-01).

                        1 Reply Last reply
                        0
                        • R Recliner2042 has marked this topic as solved on
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search