Unable to create SSL certificate on windows for a tomcate server

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
sprucebots.com
I ran this command:
certbot certonly -v --standalone -d sprucebots.com

It produced this output:
Saving debug log to C:\Certbot\log\letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Requesting a certificate for sprucebots.com
Performing the following challenges:
http-01 challenge for sprucebots.com
Waiting for verification...
Challenge failed for domain sprucebots.com
http-01 challenge for sprucebots.com

Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: sprucebots.com
Type: unauthorized
Detail: Invalid response from http://sprucebots.com/.well-known/acme-challenge/8Jg7b04akl2lApmZMCt1FxE1naLUjyQ3bcK0AKucP1M [34.102.136.180]: "<!doctype html><html lang="en"><meta http-equiv="content-type" content="text/html;charset=utf-8"><meta name="viewport" con"

Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.

Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile C:\Certbot\log\letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version):
Tomcat 8.5

The operating system my web server runs on is (include version):
Windows 10 Version 20H2

My hosting provider, if applicable, is:
Hosting it on my own box, for now.

I can login to a root shell on my machine (yes or no, or I don't know):
I donr know.
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.22.0

Assuming your tomcat server (or Apache etc) is on port 80, you'd need to stop that first, then run the certbot standalone command (it runs a standalone http challenge response server, but needs port 80 to be free).

2 Likes

I stopped the tomcat server running on port 80. And then tried to create the certificate. Still the same error message.

certbot certonly -v --standalone -d sprucebots.com --debug
Saving debug log to C:\Certbot\log\letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Requesting a certificate for sprucebots.com
Performing the following challenges:
http-01 challenge for sprucebots.com
Waiting for verification...
Challenge failed for domain sprucebots.com
http-01 challenge for sprucebots.com

Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: sprucebots.com
Type: unauthorized
Detail: Invalid response from http://sprucebots.com/.well-known/acme-challenge/1M-ErKDwwfFNduM8QVwmTq499HZN_yBJS3T4WTlFMys [34.102.136.180]: "<!doctype html><html lang="en"><meta http-equiv="content-type" content="text/html;charset=utf-8"><meta name="viewport" con"

Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.

Cleaning up challenges

The standalone plugin doesn't output HTML at all. Just the challenge token or an error. No HTML.

So if you're seeing HTML, there must be some other webserver answering to the validation attempt. Perhaps the validation attempt ends up at an entire different host?

3 Likes

I see "Server: openresty":

curl -Ii http://sprucebots.com/
HTTP/1.1 200 OK
Server: openresty
Date: Wed, 05 Jan 2022 19:40:18 GMT
Content-Type: text/html
Content-Length: 2548
Last-Modified: Wed, 10 Nov 2021 15:38:04 GMT
ETag: "618be75c-9f4"
X-Adblock-Key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJRmzcpTevQqkWn6dJuX/N/Hxl7YxbOwy8+73ijqYSQEN+WGxrruAKtZtliWC86+ewQ0msW1W8psOFL/b00zWqsCAwEAAQ_bDbCABlkryFAD0cPFDtcFiOzCfHDUZVIvMP6p++IRyNO6MtGXmP+BCNeeF6AJYbVq3afajjQ0iTgME3E/NKGfQ
Set-Cookie: system=PW;Path=/;Max-Age=86400;
Set-Cookie: caf_ipaddr=75.51.0.154;Path=/;Max-Age=86400;
Set-Cookie: country=US;Path=/;Max-Age=86400;
Set-Cookie: city="Hollywood";Path=/;Max-Age=86400;
Set-Cookie: traffic_target=gd;Path=/;Max-Age=86400;
Accept-Ranges: bytes
Via: 1.1 google
2 Likes

Not what DNS shows:

Name:    sprucebots.com
Address: 34.102.136.180

Name:    180.136.102.34.bc.googleusercontent.com
Address: 34.102.136.180
3 Likes

Thanks all this information is useful. I need to work on getting a website hosted or DNS updated on godaddy.

1 Like

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