I ran this command:
C:\Apache\letsencrypt-simple\letsencrypt.exe --verbose --manualhost=www.tsaswimteam.com --webroot=C:\Apache\Tomcat\webapps\swimteam --emailaddress=tsaswimteam@gmail.com --accepttos=yes --plugin=manual --centralsslstore=C:\Apache\certs
It failed, but the windows closed automatically so I could not see what was wrong. I tried a few more times and then exceeded the limits so I could not renew anymore. I actually still have 1.5 months before the cert expires. However, this failed command caused the chain.pem and key.pem files out of sync (one updated and one didn’t) so I was left with a non-working system. I urgently need a working pair of pem files. What can I do now?
I should have backed up these files before requesting new certs so at least I could recover using the old files if anything fails. This mismatched files caused Apache server failed to start, saying configuration error.
Thank you so much for your quick response. The problem was that the domain.chain.pem and the domain.key.pem files were not created at the same time. The working ones got overwritten. So I don’t have a working pair. I had to use the test certificate/key because I need the site up. Is there a way for me to retrieve a valid cert/key without creating a new one?
From your info, it seems I can only create cert again one week later on 4/6 :-(.
Thanks. How do I create a cert for multiple domains? I am on Windows and use letsencrypt-simple client. This exe file launches its own window, and closes it upon exit. I googled how to stop command windows from closing, but this command windows doesn’t work with all the options I tried.
I tried to use --help for the command, but still didn’t know the command for multi-domain cert. This is the command I am currently doing. Should I somehow append the more domains into the --manualhost option?
C:\Apache\letsencrypt-simple\letsencrypt.exe --verbose --manualhost=www.tsaswimteam.com --webroot=C:\Apache\Tomcat\webapps\swimteam --emailaddress=tsaswimteam@gmail.com --closeonfinish --accepttos=yes --plugin=manual --centralsslstore=C:\Apache\certs
No, the design of the web PKI is that your private key only exists on your server and isn't known to anyone else or stored anywhere else. So if you don't have it, there's no other copy available.
If you need a certificate and key just to make your configuration temporarily valid, you could use a self-signed certificate, which you can create using some openssl commands that I don't remember offhand, or perhaps with another tool like
which generates one in your browser. This certificate would not be accepted by browsers, but it can be used by server software and gives you a key and certificate that match. If the problem is just getting a service to start so that you can proceed with other steps, that could be a useful solution.