How request www and non-www in one request

I try to use LetsEncrypt Certificates, it’s works and with this command I able to provide LetsEncrypt on my domains.

string command= String.Format(staging + "-a -j -d {0} -p {1} {2}", "domain.com", certPassword, options);
			Process p = Helpers.LaunchProcess(@"acme.net\acme.exe", command,
				stdout => this.Invoke(() => tbLog.AppendText(stdout + CRLF)),
				stderr => this.Invoke(() => tbLog.AppendText(stderr + CRLF)));

Question is how could to have ssl on www and non-www with one request.
Note: I find these command, but doesn’t work during adding to my command.

1 Like

This is the ACME client you are using: https://github.com/oocx/acme.net

Regarding the ability to issue multiple domains, read this: https://github.com/oocx/acme.net/issues/5 . According to the final comment, one of these should work (I’m not quite sure which, it depends on the parsing code):

string command= String.Format(staging + "-a -j -d {0} {1} -p {2} {3}", "domain.com", "www.domain.com", certPassword, options);

or

string command= String.Format(staging + "-a -j -d {0} -p {1} {2}", "domain.com www.domain.com", certPassword, options);

Finally, I’d like to point out that the ACME client you are using is unmaintained and uses the deprecated ACME v1 protocol.

ACME v1 is deprecated and is in the process of being removed: End of Life Plan for ACMEv1 . I recommend finding a more up-to-date tutorial that uses an ACME v2/RFC8555 client.

2 Likes

Thanks , it’s works. Just there is two certificates. During using www.sslforfree.com, I had one certificate for www and non-www.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.