You need to submit both domains at once to your ACME client you use.
The command you pasted here are clearly not the ones you ran, but just taken out of an example and I guess you can replace www.domain.com with domain.com and www.domain.com_Alias with www.domain.com (or reverse).
Not sure i get what you mean. I have verified both versions of domain.com with and without the www in url . I am able to issue two certificates the bit im stuck on is How do I issue one certificate? Im not sure how to run the cmd line.
This is what I tried. Issues a certificate for www.domain.com and not for domain.com basicly I want access to my site with www and non www bit with one certificate.
What you’re looking for is a SAN (Subject Alternative Name) certificate. This is described here in the ACMESharp wiki. The relevant flag seems to be -AlternativeIdentifierRefs, so in your case you’d use something like -AlternativeIdentifierRefs example.com,www.example.com instead of -Identifier example.com, if I’m reading this correctly.
Sorry, I’m not overly familiar with that client, so I don’t know when this flag was introduced. It should definitely be in the latest version given that it’s mentioned in the docs.
I’m not sure whether the -ref flag is needed, the current docs seem to just use Submit-ACMECertificate cert1 and Update-ACMECertificate cert1 (where cert1 is the -Alias value set before). Might be a change introduced after 0.71, or maybe it works with -ref as well. Other than that, the commands look right to me.