Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
Also, I don't fully understand autocert.. The authorization is deactivated, which is something only an ACME client can do (if the ACME server disabled the authz, it would have been called "revoked"). But all the challenges of the authz are still "pending", so nothing has been done with them! They were apparently not triggered to perform the challenge at all. And all three possible challenges are there: there are no other challenges currently available.
So I don't understand why autocert is complaining. It should either have used the authz and not deactivate it and use one of the challenges. Or ignore the deactivated authz and generate a new one?
I wonder if something went horribly wrong with the assumption that code makes about nextTyp being consistent between authorizations. My memory is very foggy but I think Boulder deletes unused challenges once an authorization becomes valid. An order which was created with mixed cached valid/pending authorizations may break autocert's assumptions.
I'm gonna vote for "autocert bug", not that it especially helps OP.
Sorry guys, I am new to go and developing websites.
So when I have logged in to the VM instance I have created on GCP, and connected to it through ssh, I just run sudo go run . & in the directory containing the code of the server, and a main.go file.
In the main.go, I have imported "golang.org/x/crypto/acme/autocert", created an autocert.Manager with Prompt, HostPolicy, and Cache fields filled in.
Then I created two threads, one with HTTPHandler(nil), listening and serving at port 80, another thread listening and serving the real content of my website with at port 443.
So I have no idea what web server I am running except it is written in go 1.17.
Would you mind giving me some example of what you are expecting for My web server is (include version):? Is it something like Apache, or Nginx? I am not using any of those.