I’m trying to develop a client in Go for the Let’s Encrypt ACME v02 protocol.
I understand the general workflow of the protocol, but I am totally lost for the implementation.
I am using the acme package (this one). I don’t know what methods to use, and I even don’t know if the package supports the v02 of the protocol.
It says that it is a work in progress and makes no API stability promises, but I am not developping for a production use, just in developpment.
Thank you to the one or those who will take some time to enlighten me.
I'm afraid I don't have experience using x/crypto/acme myself to give you much immediate help. I believe the x/crypto/autocert package is a higher level ACME client of sorts that itself uses the x/crypto/acme library: autocert package - golang.org/x/crypto/acme/autocert - Go Packages You might find studying its source code to be helpful in your quest (though, only for ACME v1 as of now). If you're still struggling it might help to hear what you've tried and what you're uncertain about.
Thanks for your answer.
Do you know if lego supports wildcard certificates ? It support SAN certificates but there is no mention about wildcard certificates
Both libraries “support” wildcard certificates insofar as they support ACME v2.
There’s not anything specific to wildcards in the ACME protocol (as far as clients are concerned), you just pass *.example.org as one of the identifiers in the ACME order.