Hi, I’m new to Linux and want to use Ubuntu to generate a cert for a Windows Xampp install since I have found no simple way to do it on Windows.
I installed LE from Github, and get “Command not found” when running the letsencrypt command. I believe the documentation shouldn’t be using the environment variable “letsencrypt”, off the bat if it doesn’t work without extra configuration. Instructions, or a caveat might help. I read somewhere to create an alias but that confused me since I’m new to Linux, and not great with its file system.
In any case, I successfully ran the script from the lets encrypt folder like another user pointed out on the forum. The arguments I ran are as follows (from the Get Started page}:
To obtain a cert using the “webroot” plugin, which can work with the
webroot directory of any webserver software:
If it did work, the files it obtained would be in /etc/letsencrypt rather than in /var/www/example (the private key is a secret and shouldn't be in the public www directory, which contains files that are served by your web server as web site content, not configuration for the web server itself). But when it succeeds it normally does show a message to say so, so I agree that it would be helpful to see the client log file.
Ok it makes a little more sense and I have the client running. Do I use the syntax from letsencrypt or the arguments as defined in the client?
Using the simpler client arguments I’m getting an MX record error. I use cloudflare and have an MX record pointing to mail.mysite.com, which is an A record and at another server than my website. Does that matter?
So to clarify, my web server is at a different ip than my mail host. I can receive emails at the address I am using.
Edit: I found this: How to get a Let’s Encrypt certificate while using CloudFlare but it seems I have to use the arguments that the PHP client is expecting. I moved on from setup to “issue” now I get an error that my domain can’t be resolved to an IP4 record. Could this be that my router doesn’t have loopback? Internally I am using my hosts file.
If I get it right, your mail host has a CNAME / DNAME record, right? I might ignore CNAMEs / DNAMEs during lookups for MX records. Could you share your domain name? You can use a private message for that, too.
You have to use the arguments as shown when you use the -h option, so acme-client setup -h for example.
How do I PM you? Maybe I can’t because I’m a new user. When I go to your profile I don’t see an option. I must be taking crazy pills. lol. Thanks again for the help. Edit: Was bumped to be able to message my a mod. PM’d you.
Hi, so I eventually got this to work. I had my firewall alerts switched off so PHP was being blocked outbound silently. Secondly, my router doesn’t have a loopback interface. I have a hosts file redirect to localhost for the domain, but it was disabled from previous troubleshooting. I thought maybe the LetsEncrypt server did the check, but I guess the host name needs to resolve for the client too:) Thanks again for the help.
That reminds me, I'm curious about MS's up coming bash implementation. Apparently it's going to be the Ubuntu version of bash (literally, not a MS port), so I'm wondering whether @Neilpang's bash client (and others) will work exactly like it does on *nix.
My server is FreeBSD, but I'd used bash on linux since 1994 so when I switched to FreeBSD in 2004, I installed bash for the familiarity (damn you, shellshock!). I use Windows on my desktop/laptop/HTPC, and if bash in Windows works as advertised, I can almost see myself completely replacing my use of cmd with bash going forward. The consistency across systems will be wonderful. (Powershell is great and all, but I could never quite get used to scripting for it. Get off my lawn.)